beforeclick event

mmartin
04-11-2007, 03:16 PM
Hello.

I've been trying to fire an event using the ax control, but get no respose
when the map is clicked...any ideas? Do I have to add a method for this, or should it already exist withing the ax control?

Private Sub AxMappointControl1_BeforeClick(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long, ByVal Cancel As Boolean)
'Go to the location clicked on the map with the mouse
objmap.XYToLocation(X, Y).GoTo()
End Sub:cry:

Wilfried
04-13-2007, 02:28 AM
Hi,

Nothing special to do. Just add the event handler using the IDE or in code. If it does not fire then you did something wrong but I dont know what. Did you use the IDE for assigning the event handler ?

mmartin
04-13-2007, 06:36 AM
Thanks, Wilfried...I had just coded it...but I will try adding it via the IDE and see how that goes.

Best
Michael

 
Web mp2kmag.com
mapforums.com