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
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Access some hidden features in MapPoint2002 ActiveX control

This is a discussion on Access some hidden features in MapPoint2002 ActiveX control within the MapPoint Desktop Discussion forums, part of the Map Forums category; Sergiy I tested your suggestion, it works great! Thank you, David...

  1. #11
    dzhong is offline Member Yellow Belt
    Join Date
    Aug 2002
    Posts
    45
    Sergiy

    I tested your suggestion, it works great!
    Thank you,

    David

  2. #12
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    David,

    thanks for keeping me informed.

    Not sure if "Can you bring up the Window for routing preference" means "More Options" from MP2002 "Route" menu, but if that what you want, then use

    objMap.SendCommand MapPointMenu.mnuRoute.cmdRouteOptions

    and you'll get it.

    Sergiy.

  3. #13
    feanor is offline Junior Member White Belt
    Join Date
    Mar 2003
    Posts
    2

    Re: Access some hidden features in MapPoint2002 ActiveX cont

    Hi,
    im developing an application with the mapPoint Control, in Visual Basic.Net. Im' trying to learn anything i can find about the MapPoint. Please can you say me where find information about undocumented features like the one you used?

    Thankyou in Advance

    Achille

    Quote Originally Posted by baal_2000
    Hi,

    An example project under the link below shows a way around (using WinAPI) to access MapPoint2002 functionality (like 'Location Sensor' or 'Measure Distance' from 'Tools' menu), which is not readily available in the ActiveX control, many times asked about though.

    The code is not documented and does not pretend to be bug-free. But, it is not too complex to understand.

    I appreciate responses, fixes as well as reports about new commands been accessed and not present in the posted example.

    Download:
    http://www3.sympatico.ca/spavlov/mappoint_extended.zip

    Thank you for being curious,

    Sergiy Pavlov

  4. #14
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    Achille,

    Unfortunately, no secrert sources are known to me, except this very forum :)

    Let us know if you find one!

    Good luck,
    Sergiy

  5. #15
    dzhong is offline Member Yellow Belt
    Join Date
    Aug 2002
    Posts
    45

    How to bring up the open file window

    Sergiy,

    can you add the function to bring up the open file window, i.e. under the menu File -> Open?

    I need the open file window to open a map file in *.est, *.ptt, *.sst etc.

    Or there are an alternative way to open these files saved by Street & Trips?

    Any suggestions are appreciated very much.

    David

  6. #16
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    David:

    Not every command could be activated, by now.
    I am keeping trying....

    Sergiy

  7. #17
    Bob Chase is offline Junior Member Yellow Belt
    Join Date
    Mar 2003
    Posts
    13

    moPan, moDefault, moPencil

    I get "Compile error: variable not defined" until I comment out these 3 variables.

    Thanks for this great extension to the Map Point ActiveX control.

  8. #18
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    Thanks Bob,

    It might be stuff left from the project that I was actually cutting the example from.

    I am in process of updating it, will let you know when the update is ready to download.

    Sergiy

  9. #19
    Bob Chase is offline Junior Member Yellow Belt
    Join Date
    Mar 2003
    Posts
    13

    FindGrandChildWindow

    I will greatly appreciate that.

    In order to get the extensions to work with an Access form (in fact one that not only has the MapPoint Control, but also a sub-form placed on it), I had to modify the "FindChildWindow" procedure to search through each child window's children:

    Code:
    Public Function FindChildWindow(ByVal szClass As String, _
                                    ByVal szTitle As String, _
                                    Optional ByVal bExactMatch As Boolean = True) As TWindow
    
        Dim hWndC As Long
        Dim TWin As TWindow, TWinGrandChild As TWindow, bFoundGrandChild As Boolean
        Set TWin = New TWindow
        Set TWinGrandChild = New TWindow
        
        If bExactMatch Then
            TWin.hWnd = FindWindowEx(mvarhWnd, 0, szClass, szTitle)
        Else
            TWin.hWnd = GetWindow(mvarhWnd, GW_CHILD)
            Do While TWin.Valid
                If vbNullString = szTitle Then
                    If InStr&#40;1, TWin.ClassName, szClass&#41; <> 0 Then
                        Exit Do
                    End If
                Else
                    If InStr&#40;1, TWin.Caption, szTitle&#41; <> 0 Then
                        Exit Do
                    End If
                End If
                
                TWinGrandChild.hWnd = GetWindow&#40;TWin.hWnd, GW_CHILD&#41;
                Do While TWinGrandChild.Valid
                  If vbNullString = szTitle Then
                      If InStr&#40;1, TWinGrandChild.ClassName, szClass&#41; <> 0 Then
                          bFoundGrandChild = True
                          Exit Do
                      End If
                  Else
                      If InStr&#40;1, TWinGrandChild.Caption, szTitle&#41; <> 0 Then
                          bFoundGrandChild = True
                          Exit Do
                      End If
                  End If
                  TWinGrandChild.hWnd = GetWindow&#40;TWinGrandChild.hWnd, GW_HWNDNEXT&#41;
                Loop
                If bFoundGrandChild Then
                  Exit Do
                End If
                TWin.hWnd = GetWindow&#40;TWin.hWnd, GW_HWNDNEXT&#41;
            Loop
        End If
    
        If Not TWin.Valid Then
            Set TWin = Nothing
        End If
        
        If bFoundGrandChild Then
          Set FindChildWindow = TWinGrandChild
        Else
          Set FindChildWindow = TWin
        End If
          
    End Function

  10. #20
    baal_2000's Avatar
    baal_2000 is offline Junior Member Yellow Belt
    Join Date
    Jan 2003
    Location
    Toronto, ON, Canada
    Posts
    24
    To Audience:

    Newer version of the ActiveX control extension is under preparation.
    It enables few more MapPoint commands: Save_As_Web_Page,
    Page_Setup, etc. Download the compiled executable file to find them all,
    as well as to help me check if everything works smoothly:

    http://www3.sympatico.ca/spavlov/maplepoint.zip

    The executable should work on any Windows system with MapPoint2002
    and VB6 runtime pre-installed. NorthAmerica runs MaplePoint_NA.exe,
    Europe - MaplePoint_EUR.exe

    All the application's menu commands are implemented through WinAPI
    calls, even those accessible via existing COM interface: i am testing the
    technique itself, not the particular set of commands.

    Thanks,
    Sergiy

Page 2 of 5 FirstFirst 1234 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. MS Access Mappoint ActiveX
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-21-2005, 06:31 PM
  2. Re: Keyboard control in mappoint activex control
    By djcapslock in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-10-2005, 11:16 AM
  3. MS Access and Mappoint ActiveX Control
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-26-2004, 02:29 PM
  4. Using MP ActiveX Control in Access/Foxpro etc
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-21-2003, 12:51 PM
  5. Hi EB Can i use the Map point control features ....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-14-2002, 03:03 AM

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