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

beforeclick event

This is a discussion on beforeclick event within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello. I've been trying to fire an event using the ax control, but get no respose when the map is ...

  1. #1
    mmartin is offline Member Yellow Belt
    Join Date
    Apr 2007
    Posts
    30

    Unhappy beforeclick event

    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?

    PrivateSub AxMappointControl1_BeforeClick(ByVal Button AsLong, ByVal Shift AsLong, ByVal X AsLong, ByVal Y AsLong, ByVal Cancel AsBoolean)
    'Go to the location clicked on the map with the mouse
    objmap.XYToLocation(X, Y).GoTo()
    EndSub

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: beforeclick event

    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 ?

  3. #3
    mmartin is offline Member Yellow Belt
    Join Date
    Apr 2007
    Posts
    30

    Thumbs up Re: beforeclick event

    Thanks, Wilfried...I had just coded it...but I will try adding it via the IDE and see how that goes.

    Best
    Michael

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. DoubleClick Event
    By Tommy in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-15-2006, 02:18 PM
  2. SelectionChange Event
    By calv1ns in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 10-12-2006, 01:55 PM
  3. SelectionChange event
    By Yazzy in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-16-2006, 10:25 AM
  4. Where is the Quit event?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-08-2005, 08:36 AM
  5. VC++ OnSelectionChange event
    By MP2KUser2 in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 10-13-2004, 02:24 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