MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Position of the ShowFindDialog window

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. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-01-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-01-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-01-2007
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 02-01-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 02-02-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
position, showfinddialog, window


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/position-showfinddialog-window-5641.html

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 12:42 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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