MarkerToolTipMode OnMouseOver

Feb 26, 2010 at 9:55 AM

I know that it was said many times already, that you must set the Size of the Marker in order for the Tooltip to show "OnMouseOver".

I tried for 3 hours already, and for the life of me, I can seem to get it working... I read all of the posts that were related to this issue, and I haven't had any luck.

I'm using VB 2008.

 

 

        While reader2.Read()
            dFXCoord = reader2("FXCOORD")
            dFYCoord = reader2("FYCOORD")

            Dim mCoord As New PointLatLng(dFYCoord, dFXCoord)
            Dim m As New GMapMarkerGoogleGreen(mCoord) 
            m.ToolTipText = reader2("FSITEID")
            If bHideLabels = True Then
                m.TooltipMode = MarkerTooltipMode.OnMouseOver
            Else
                m.TooltipMode = MarkerTooltipMode.Always
            End If
            top.Markers.Add(m)
        End While

I even put in a checkbox, so that I can turn the labels on and off easily, but since they are so close to each other, I still can't read all of them.

What am I doing wrong? How can I set the size?

 

Thanks.

Coordinator
Feb 26, 2010 at 3:31 PM

so you know you must set the Size but you don't and expect else ;} interesting

Feb 26, 2010 at 8:16 PM

No, of course I don't expect it to work the way it is now. I know that there is currently no code to change the size. I couldn't figure out exactly what code to write. Whatever I tried, didn't seem to be valid code.

Such as:

m.Size = New GMapMarkerGoogleGreen.Size (100, 100)

I'm looking for help creating the proper line of code, to change the size.

 

Thanks.

 

Coordinator
Feb 26, 2010 at 8:18 PM

m.Size = new, press space and wait for intellsense

Feb 26, 2010 at 9:03 PM

Intellisense is almost worthless at times. In this case I got over 200 different choices.

But thanks for pointing me in the right direction. Even telling me that "m.size = New" cut my trial and error by at least 50%. Because now I knew that that part was correct.

This is what I found worked for me.

m.Size = New Drawing.Size(35, 35)

 

Thanks again!

 

 

Coordinator
Feb 26, 2010 at 9:54 PM

;} welcome