10-09-2008 10:34 AM
10-09-2008 11:04 AM
Kenny K wrote:
I was thinking that you could possibly use the mouse move event when in the bounds of the gauge and whether they moved the mouse up or down would increase/decrease the range, but I thought that there must be a simplier way to implement this that I am missing.
I don't think there is a "simpler" way.
If you just want to temporarily "zoom" the scale into the region of the current value (e.g. to read the value more accurately or do a fine adjustment on the value), I sometimes use a "key down" event for the "ctrl" key on the control/indicator. When ctrl is pressed, the scale temporarily zooms e.g. to ±10% of the current value and releasing "ctrl" resets the scale to normal.
10-09-2008 11:20 AM
I will have to use the key down in another program, thanks.
I wont be able to use it in this program, since it is a touchpanel pc, with no keyboard (other than the on screen keyboard, which is disabled), which is why I had to use the mouse
10-09-2008 11:40 AM
10-09-2008 11:56 AM
You could edit the Run time short-cut menu and add an item "range"
Then create an event for the guage "Shortcut Menu Selection (user)".
In run time the user can right-click and choose range which will fire the above mentioned event. In that event present a pop-up to the user and let them specify the range.
I hope that helps,
Ben