MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Preventing display of menu on R. Click of MapPoint Control

This is a discussion on Preventing display of menu on R. Click of MapPoint Control within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Can someone tell me how I go about coding in VB6 how to intercept and prevent the context menu from ...


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 09-29-2004
Junior Member
White Belt
 
Join Date: Sep 2004
Posts: 8
Send a message via MSN to joer1234
Preventing display of menu on R. Click of MapPoint Control

Can someone tell me how I go about coding in VB6 how to intercept and prevent the context menu from displaying when I right-click on the MapPoint control? - I suspect I have to use the SelectionChange event, but I am not sure what I need to do. My goal is to prevent menu interaction when a user right-clicks on the control.

Thanks,
__________________
J. R.
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 09-29-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,480
Blog Entries: 1
There is some discussion about this here.. :
http://www.mp2kmag.com/mappoint/disc...pic.asp?t=4315

Ah, here is a better discussion..:
http://www.mp2kmag.com/mappoint/disc...pic.asp?p=5974

Try using the Google search box at the bottom and restrict the search to mp2kmag.. also try the forum's built-in search feature above.

hope this helps!
Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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 04-07-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Easy way in VC++

A quick and easy way to do it in VIsual C++ is to catch the mouse down event and capture the momuse up event in the parent control of the mappoint control.

/////////////////////////////////////////////////////////////////////////////
// JMapPointCtrl message handlers

void
JMapPointCtrl::OnParentNotify( UINT message, LPARAM lParam )
{
if (message == WM_RBUTTONDOWN)
{
SetCapture();
}
}
void
JMapPointCtrl::OnRButtonUp( UINT nFlags, CPoint point )
{
//Just swallow this event to disable the shortcut menu
ReleaseCapture();
}
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 04-07-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Preventing display of menu on R. Click of MapPoint Contr

Hi,

put an eventhandler in before click and set cancelto true
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
click, control, display, mappoint, menu, preventing


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
Click events of context menu are not firing.... Learner MapPoint 2006/2009 Discussion 6 05-12-2008 03:33 PM
By Right-click displaying context menu on map Banu MapPoint 2006/2009 Discussion 19 10-16-2007 08:46 AM
mappoint 2002 - Disable "click the logo and display hel Anonymous MapPoint 2006/2009 Discussion 0 10-12-2003 08:39 PM
Preventing 'Save As' Dialog (using the OCX!) daxydoggie MapPoint 2006/2009 Discussion 1 08-15-2003 03:07 PM
Is there a way to control the display of town name.... Anonymous MapPoint 2006/2009 Discussion 1 10-06-2001 09:42 AM


All times are GMT -5. The time now is 11:11 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


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