This project is read-only.

Problem with method ShowToolTip(String, int) of MapWinGIS

Feb 22, 2014 at 11:13 AM
Edited Feb 22, 2014 at 11:17 AM
Hello !
I have a problem with the ShowToolTip method of MapWinGIS :
http://www.mapwindow.org/documentation/mapwingis4.8/class_ax_map.html#a3fb281a9c80c04b6daf7489cbcfa48d7

ToolTip is displayed correctly, but my main form lose the focus when tooltip is displayed and regagned it when tooltip is hide (every 500 milliseconds for me). It creates some problems with others functionnality which have need the focus to work (Zoom in/out, move map ect...).
I display the tooltip indiside the mouseMoveEvent of AXMAP. I check if there is shape under the mouse, and if it is, I display the String attribute SHAPE.KEY.

Do you have idea about my problem ?

Thanks,

Tristan
Feb 28, 2014 at 2:34 PM
Hi

I never tried AxMap Tooltip but as a workaround, you can use standard .net tooltip like I do with
Dim mapTooltip As New ToolTip() and load parameters with shape.key before displaying it.

Olivier