MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mouse Down Event -> Form_DB.Show-> Problems with Varia

This is a discussion on Mouse Down Event -> Form_DB.Show-> Problems with Varia within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi Folks, got a problem with the mouse down event: On clicking on a pushpin, I open a Form and ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Mouse Down Event -> Form_DB.Show-> Problems with Varia

Hi Folks,

got a problem with the mouse down event:
On clicking on a pushpin, I open a Form and want to get a variable value from the main form. This only works every second time. With the using of a timer with 5 secs interval it works (bit who wants to wait 5 secs...).

Any ideas?

Thanks a lot

Peter
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 01-27-2003
Junior Member
White Belt
 
Join Date: Jan 2003
Posts: 6
Hi, I think maybe you can try this sub:
'Map1 is a mappoint control

Private Sub map1_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)
Dim xx As Long, yy As Long
'You need check your scalemode property. I am using twip in VB, but mappoint uses pixel.

xx = X / Screen.TwipsPerPixelX
yy = Y / Screen.TwipsPerPixelY


Dim objtemp As MapPoint.FindResults
Set objtemp = objMap.ObjectsFromPoint(X, Y) 'objmap is a mappoint.map object
If TypeOf objtemp.Item(1) Is MapPoint.Pushpin Then
Load Form1 'This is the form you want to show
' Do what you want to do, like "Form1.Label1.Caption = frmSearch.Label1.Caption"
Form1.Show 1
Else
MsgBox "It is not a pushpin"
End If
End Sub

Good luck.
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 01-29-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
That's what I did. It is not working. See above...

That's what I did. It is not working. See above...
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 01-29-2003
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Thanks a lot!!! Yippie, I fixed the error:

Private Sub MappointControl1_GotFocus()
If Form_DB.Visible = True Then
Form_DB.SetFocus
End If
End Sub

I commented the code above. Then it worked...

Thanks a lot!!!
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
>, event, formdbshow>, mouse, problems, varia


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
Capturing Mouse Wheel Event Anonymous MapPoint Web Service and Virtual Earth 2 11-30-2005 08:31 AM
Trying to get the MapPoint.Location at a mouse event BobFromBoston MapPoint 2006/2009 Discussion 6 07-30-2005 08:41 AM
find city name & state name on mouse move event Atul22 MapPoint 2006/2009 Discussion 2 10-15-2004 05:28 AM
mouse down event henemonster MapPoint 2006/2009 Discussion 1 03-31-2003 03:04 PM
Show another form after mouse_down event... blackmap MapPoint 2006/2009 Discussion 1 01-21-2003 03:21 PM


All times are GMT -5. The time now is 09:36 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, 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 55