MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-29-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-29-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-29-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-29-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Vic,

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

John
john.meyer@support-pc.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
custom, mappoint, menu, popup


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Menu in Mappoint Anonymous MapPoint 2006/2009 Discussion 1 11-15-2004 01:33 PM
Custom context menu Anonymous MapPoint 2006/2009 Discussion 3 09-10-2004 10:15 PM
mappoint floating menu starbuck MapPoint 2006/2009 Discussion 3 09-07-2004 09:58 AM
Mappoint Menu starbuck MapPoint 2006/2009 Discussion 1 10-28-2003 04:01 AM
Is there any way to disable Mappoint 2002 popup menu? Anonymous MapPoint 2006/2009 Discussion 2 12-12-2002 05:21 PM


All times are GMT -5. The time now is 05:22 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Flights from Birmingham
Here at Holiday Hypermarket you can book fantastic cheap flights from Birmingham Airport. Check out the great range of destinations.

Best Travel Agent
Travel Counsellors has been named the UK's Best Travel Agent at the Guardian Unlimited Travel awards.

Cuba Holiday
A Cuba Holiday has so much to offer with numerous different cultures affecting the sights, sounds and tastes. Visit this fascinating country with dealchecker.co.uk.

Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!

Portugal
As well as providing some great weather Portugal has much to offer culturally. There are numerous museums, monuments and places of historical interest to explore. Despite the rich history there is a buzzing nightlife and great shopping too.

Compare Holidays
Compare holidays online where you can see all the amazing possibilities at Travel.co.uk

Holidays in Sharm el Sheikh
Need booking info on holidays in Sharm el Sheikh? Visit On The Beach for more information!


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