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

Position of the ShowFindDialog window

This is a discussion on Position of the ShowFindDialog window within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, Please can you tell me if it is possible to set the position of where the ShowFindDialog window appears. ...

  1. #1
    Jonny1234 is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    10

    Position of the ShowFindDialog window

    Hi,

    Please can you tell me if it is possible to set the position of where the ShowFindDialog window appears.

    At the moment, when I call ShowFindDialog, the dialog appears directly on top of the map (the map is in a small window of its own) and it has to be moved in order to see the map.

    I would like the dialog to appear beside the map.

    Thanks for your help.

    Regards,
    Jonny

  2. #2
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Position of the ShowFindDialog window

    The third parameter of ShowFindDialog() is a window handle to attach the dialog to. You'll want to set this to whichever form you want the dialog to appear on, typically the windows form which contains the button that initiates the dialog. As in...
    objMap.ShowFindDialog(, , Me.Handle.ToInt32)

    Aside from that, you could use some WinAPI functions to send messages to the dialog window to move it anywhere you like. This is a bit more advanced.

    HTH
    Paul

  3. #3
    Jonny1234 is offline Junior Member White Belt
    Join Date
    Dec 2006
    Posts
    10

    Re: Position of the ShowFindDialog window

    Thanks for your reply Paul.

    I tried what you said, but the ShowFindDialog doesn't even appear. My program just continues on after the call to ShowFindDialog.

    In the MapPoint help for ShowFindDialog, it says:

    "Do not use a handle for a window other than the MapPoint window if the MapPoint window is visible."

    My problem is that the MapPoint window is indeed visible, and so setting the handle to another window (which is what I think I want to do) doesn't work.

    Any other suggestions would be appreciated.

    Thanks,
    Jonny

  4. #4
    Paul Larson is offline Senior Member Green Belt
    Join Date
    Sep 2005
    Location
    Battle Creek, Michigan
    Posts
    136

    Re: Position of the ShowFindDialog window

    Interesting...
    When I run the code above, it works as expected.

    What version of MapPoint are you using, and what programming environment?
    (i.e. MapPoint 2006 North America (ActiveX Control, VB.Net, Framework 1.1.4322)

    I could pretty easily code a VB.Net module to move the dialog to new screen coordinates, if needed.

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

    Re: Position of the ShowFindDialog window

    Hi,

    Also all the functions on the find dialog are exported. So it is very easy to write this dialog yourself. Advantage is that it is customized

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems with ShowFindDialog
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 03-20-2007, 09:31 AM
  2. Complete adress, when using ShowFindDialog?
    By Jarun in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-11-2005, 02:31 PM
  3. Object returned by ShowFindDialog
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-15-2004, 11:00 AM
  4. Getting the directions window back
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 04-01-2004, 04:59 PM
  5. ShowFindDialog not quite as modal as it should
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 04-07-2003, 04:17 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 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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96