Community of VE/MapPoint Users and Developers
This is a discussion on TMap.OnBeforeClick event returns bad data within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to use the TMap.OnBeforeClick event to determine when the user holds the control key and clicks on ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| TMap.OnBeforeClick event returns bad data Does anyone have any suggestions as to what the problem might be? I am using Delphi rather than VB. Does the event return the correct values when used with VB? |
| |||
| I figured it out...
After looking at the type library I discovered that the TMap.OnBeforeClick event is passing the correct data just not in the order I expected. The problem involves calling conventions. By default VB uses a right to left convention while Delphi uses a left to right calling convention. The parameters for the OnBeforeClick event are Button, Shift, X, Y, Cancel, respectively. In Delphi, I have to receive them in reverse order due to the change in calling convention, i.e. (Cancel, Y, X, Shift, Button). All the parameters are Integers, so I never got an error when the parameter lists were compared at compile time. |
![]() |
| Tags |
| bad, data, event, returns, tmaponbeforeclick |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom location returns null when using find nearby in route | briansbrown | MapPoint 2006/2009 Discussion | 2 | 11-15-2005 02:40 PM |
| Is MapPoint or something else best to map election returns? | jhbroussard | MapPoint 2006/2009 Discussion | 2 | 08-24-2005 08:44 AM |
| FindAddressResults returns nothing | Anonymous | MapPoint 2006/2009 Discussion | 5 | 12-07-2004 05:23 AM |
| GetPictureFromObject returns strange maps | cd4000 | MapPoint 2006/2009 Discussion | 0 | 08-30-2004 07:12 PM |
| Mappoint-Refresh linked data on a form load event .... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-22-2001 02:38 PM |