Community of VE/MapPoint Users and Developers
This is a discussion on Position of the ShowFindDialog window within the MapPoint 2006/2009 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. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Position of the ShowFindDialog window 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 |
| |||
| 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 |
| |||
| 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 |
| |||
| 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. |
| |||
| 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
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| position, showfinddialog, window |
| ||||
| Posted By | For | Type | Date | |
| Determing the Time Zone in MapPoint - MapPoint Articles - MP2K Magazine | This thread | Refback | 02-01-2007 03:10 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with ShowFindDialog | Anonymous | MapPoint 2006/2009 Discussion | 9 | 03-20-2007 09:31 AM |
| Complete adress, when using ShowFindDialog? | Jarun | MapPoint 2006/2009 Discussion | 3 | 04-11-2005 02:31 PM |
| Object returned by ShowFindDialog | Anonymous | MapPoint 2006/2009 Discussion | 0 | 04-15-2004 11:00 AM |
| Getting the directions window back | Anonymous | MapPoint 2006/2009 Discussion | 2 | 04-01-2004 04:59 PM |
| ShowFindDialog not quite as modal as it should | Anonymous | MapPoint 2006/2009 Discussion | 4 | 04-07-2003 04:17 AM |