Community of VE/MapPoint Users and Developers
This is a discussion on Problems with Pushpin dataset within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Sylvain, Ok, I ran the sample code and it does that same thing here. Really wierd. I've tried several things ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
|
Sylvain, Ok, I ran the sample code and it does that same thing here. Really wierd. I've tried several things but nothing is working yet. Will let you know if I come up with an idea.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
| |||
| Workaround - Flashing "Find" dialog issue
The "Find" Dialog looks like it wants to be sort of modal. By detecting if a window with "Find" as a title is currently visible at the top of the timer event seems to prevent the problem. A bit of a hack, but with a bit of extra work it might be acceptable. Localization will be an issue. Another approach that would take some research would be to try to track down the window handle of the mappoint control and subclass for the desired messages. Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function IsWindowVisible Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function GetParent Lib "user32" (ByVal hwnd As Long) As Long Private Function IsFindVisible() As Boolean Dim lHwnd As Long Dim lRet As Long IsFindVisible = False lHwnd = FindWindow(vbNullString, "Find") If (lHwnd <> 0) Then If (GetParent(lHwnd) = Me.hwnd) And (IsWindowVisible(lHwnd)) Then IsFindVisible = True End If End If End Function and as the first executable line in the Timer event If IsFindVisible() Then Exit Sub |
| ||||
|
Sylvain, Did the post by: kdybvik do the trick for you? Sounds like it might be a good solution. Let us know if it worked out for you.
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| dataset, problems, pushpin |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PushPin dataset is saved in .ptm? | PeppeM | MapPoint 2006/2009 Discussion | 1 | 05-06-2006 01:53 PM |
| Add a newly created Pushpin to Dataset | Yazzy | MapPoint 2006/2009 Discussion | 1 | 08-24-2005 02:46 PM |
| Having problems getting location from pushpin | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-02-2004 11:33 AM |
| delphi iterate pushpin dataset | merlino | MapPoint 2006/2009 Discussion | 1 | 10-12-2004 10:20 AM |
| Find Nearby Pushpin in dataset | Dazzer | Products: Pushpin Tool, Single State Mapper | 1 | 10-16-2003 04:05 PM |