Mouse position in slider
Posted
#1
(In Topic #266)
Regular

Have set Slider1 Tracking to true but the MouseMove event doesn't show anything.
Any advice would be welcome
Posted
Regular

For the simple case you could run a timer to report the mouse position:-
…and then make corrections based upon the position of the control on the form.
However, I have a feeling I'm miles away from understanding the question.
Posted
Guru

<IMG src="http://www.cogier.com/gambas/mouse_position.png">
</IMG>UPDATE: - The tracking works differently from other controls. It does not track the mouse but the slider. The help file states "Indicates that the Slider emits Change events continuously when it is moved, not just the mouse button is released."
Posted
Regular

Thank you cogier for the demo file, I'm having trouble extracting it.
$:tar -xzf Test2.tar.gz
returns:-
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Where am I going wrong?
Posted
Regular

stevedee said
…and then make corrections based upon the position of the control on the form.
…
However, I have a feeling I'm miles away from understanding the question.
That's a clever solution, somewhat hackish, but should be effective. I looked and couldn't find a better way in the Wiki.
However, I think you also want to check the Mouse.Y value so that the mouse is either on or near the slider.
Miles? I think you nailed it.
.... and carry a big stick!
Posted
Guru

Posted
Regular

1 guest and 0 members have just viewed this.


