Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 10 of 10

ToolBars Color

This is a discussion on ToolBars Color within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, how can i change the mappoint toolbars color?...

  1. #1
    Gianmaria is offline Member Yellow Belt
    Join Date
    Dec 2004
    Posts
    47

    ToolBars Color

    Hi,
    how can i change the mappoint toolbars color?

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    hi,

    you cannot, however a workaround can be that you crete your own toolbars.

  3. #3
    jswitzerTTN is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    5

    How Can this be done?

    Hello, I have been assigned to make an "idiot proof" MapPoint Control application and I only want the users have access to a few specific tools (polygon, zoom, ...). Is there such a "workaround" that will allow me to make my own toolbar? I've thought about using the default VB toolbar and just adding my own command shortcuts, but I can not figure out how to change tools programmatically. Is this the right direction? Is there anything else I could try?
    Thanks,
    Jeremy

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: How Can this be done?

    Hi Jeremy,

    Quote Originally Posted by jswitzerTTN
    I've thought about using the default VB toolbar and just adding my own command shortcuts
    Yes that's the way to go...

    , but I can not figure out how to change tools programmatically
    Almost every thing in mappoint is accessible trough the COM / object model. Not everything. For the things that you cannot access you can send keys to the component (most things have a shortcut key). If you diont wants the user to send these keys by his keyboard then you have to trap keyboard keys before they are sent. This is fun programming

  5. #5
    jswitzerTTN is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    5

    Key Shortcuts

    Sounds Like fun.
    Could you point me in the right direction with a reference or example for making this happen? For instance: If I wanted to change to the Freeform tool on some event.
    Thanks in Advance.
    Jeremy

  6. #6
    jswitzerTTN is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    5

    Update

    Ok, I found the shortcut reference inside MapPoint help. Very cool. still not sure how to switch tools, but I've gotten this far.
    Jeremy

  7. #7
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Jeremy,

    I'm not sure what you means by 'switch tools', can you enlighten your question ?

  8. #8
    jswitzerTTN is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    5

    Switching tools

    Since the MapPoint API does not include a method for creating custom toobars within an application, I want to find a shortcut or command to put the focus on a specific tool on one of the MapPoint toolbars.

    Once I have this, I could link it to my own custom VB toolbar object.

    For example:
    I want the user to be able to zoom in and out on the map, but I don't want to give them the ability to use any of the other tools on the "Navigation" toolbar Provided by the API. I found that this could be done simply using the "+" and "-" keys. So I somehow map buttons for "+" and "-" on my own tool bar, and I have reached my goal.

    Now, my problem is that I want to gain focus of the "Freeform tool" on the "Drawing" toolbar, but I cannot find a shortcut. Is this still possible?
    Thanks,
    Jeremy

  9. #9
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi Jeremy,

    I think I understeand what you mean. Please dont shoot me in the foot if I did not

    You have your own toolbars and you want to execute some of the mappoint toolbars. There are several ways to do this. The most easy one is to send a key to the component. Just as you doe now with the zoom keys '+' '-', but this you already know. I think for most (each ?) thing in the toolbar there is a shortcut key. There was an article or post a while ago. Try to do a search for "Hidden" or "hidden features" or something.

    The things that does not have shortcut key are maybe accecible trough menu ? Then you can sen dalso key's to it with ctrl or shift...

    The othere approach is to send a mouse up message to the button. However I think the button must be visible, and you have to find it's windows handle. However here are tools for that. I also think there was a post or article here concerning this a while ago. Pleas try to find them.

    Please give feedback on how you proceed, because this is interssting matter and it will beneifit other people too.

  10. #10
    jswitzerTTN is offline Junior Member White Belt
    Join Date
    May 2005
    Posts
    5

    Just what I was looking for

    That is what i'm talking about Wilfried!

    I found the article right away, but then I found an old discussion that was even more helpful:

    http://www.mp2kmag.com/mappoint/disc...extend+activex

    the vb project already had something pretty darn close to what i needed in the example form, but i've already started looking inside the classes and there is a lot of good stuff, I'm gonna look at this some more and I let you know of my progress.
    Thanks for everything,
    Jeremy

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Managing Toolbars (In .Net)
    By EdB in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-06-2009, 07:34 AM
  2. Customizable Toolbars
    By DavidP in forum Wish List
    Replies: 0
    Last Post: 01-12-2005, 08:02 PM
  3. Toolbars and C#
    By ddpg in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-29-2004, 08:29 AM
  4. toolbars
    By Fisherman´s Friend in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-22-2003, 08:13 AM
  5. Toolbars
    By Bart Vervenne in forum Wish List
    Replies: 0
    Last Post: 04-11-2003, 02:38 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25