04-16-2009 04:24 AM - edited 04-16-2009 04:27 AM
Hello,
I use a picture indicator to show the results from a pressure measurement, because it is a 2D distribution.
I'd like to show the position of the cursor when it moves in. It should look like the tip strip but change dynamically according to the positions.
There're here two examples for the indicator.
Thanks for your answers!
Snap1 Snap2
Solved! Go to Solution.
04-16-2009 04:57 AM
Few pointers:
Now ontopic:
use an event structure to get the Mouse Move event for the picture control, substract the controls position to get the actual coordinates inside the picture control.
Divide this coordinate by the 'square size' you use.
Use the Tipstrip property to write the string containing the coordinates.
Ton
04-16-2009 06:59 AM
Hello Ton,
thanks for the tips for using the images in the forum
I've written an event similar as your advise.
But the problem is the Strip is not always shown (which is important for this indicator!). And there's hesitation before the strip is displayed.
I want the strip to be shown as in the slide. Once the mouse is in the picture, the strip is ALWAYS visible.
Thanks
04-17-2009 01:43 AM - edited 04-17-2009 01:44 AM
Use the attached codesnippet inside your event structure:
You can hide the string control when the mouse leaves the picture.
Ton