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 4 of 4

Trying to use custom pop-up menu on a Mappoint VB ....

This is a discussion on Trying to use custom pop-up menu on a Mappoint VB .... within the MapPoint Desktop Discussion forums, part of the Map Forums category; Trying to use custom pop-up menu on a Mappoint VB application. I got the map object to respond to the ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Trying to use custom pop-up menu on a Mappoint VB application. I got the map object to respond to the mouse down event. Whoever, if you do not resond to the pop-up menu immediately, you get a server error. The same thing happens when you launch a modal form from a map object event. Any feedback would be appreciated.

    Also, is there in a VB app to have custom menu items be shown in conjunction with the mappoint menu items?

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    John:
    Thanks for the follow up. The following is the code in the mouse down event in the map object. It just brings up a popup menu on the right button (2):

    If Button = 2 Then
    frmMain.SSActiveToolBars1.PopupMenu "ID_mnuMap"
    End If

    The following are my findings:
    1. If I put my pop-up menu code in the mouse up event of the map object, it is being ignored and the mappoint menu is poped up.

    2. If I put my pop-up menu code in the mouse down event of the map object, then the mappoint popup menu is ignored and my popup menu shows up. Also, if theuser does not respond to this popup menu with few seconds, I get a mappoint generated server error.

    What I realy want to be able to do is pop up my menu on the mouse up event. Also I would like to know if there is a way to append my menu items to mappoints menu items.

    Vic




  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Vic,

    Put your code in the MouseUp event and this code in the MouseDown Event.



    If Button = vbRightButton Then


    Set wshshell = CreateObject("wscript.shell")


    wshshell.SendKeys "{ESC}"

    wshshell.SendKeys "{ESC}"

    End If



    Let me know if this works for you.



    John

    john@support-pc.com

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Vic,

    Lets see the code you have in the Mouse Down event.

    John
    john.meyer@support-pc.com


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Menu in Mappoint
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-15-2004, 01:33 PM
  2. Custom context menu
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-10-2004, 10:15 PM
  3. mappoint floating menu
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 09-07-2004, 09:58 AM
  4. Mappoint Menu
    By starbuck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-28-2003, 04:01 AM
  5. Is there any way to disable Mappoint 2002 popup menu?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 12-12-2002, 05:21 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83