Mouse Click Ended
Posted: Mon Feb 14, 2011 11:16 am
Hi PB-Team,
I'd like to suggest some more event-types for detecting mouse-events...
See the Gauge-Gadget linked from here http://www.purebasic.fr/english/viewtop ... 22#p346722
My wish would be to have:
- #PB_EventType_LeftClickEnded (if MB is released)-
- #PB_EventType_LeftClickStarted (when MB was pressed, but not yet released)
- #PB_EventType_LeftMouseButtonDown (if MB is still pressed)
And the same for the right and middle MB...
This way, you could start an operation and keep working with it until the Mouse-Click has ended.
Speaking of the Gauge, you could then click and hold the left Mouse button, redraw the gadget as needed, and stop updating when the Mouse button is released.
I'd like to suggest some more event-types for detecting mouse-events...
See the Gauge-Gadget linked from here http://www.purebasic.fr/english/viewtop ... 22#p346722
My wish would be to have:
- #PB_EventType_LeftClickEnded (if MB is released)-
- #PB_EventType_LeftClickStarted (when MB was pressed, but not yet released)
- #PB_EventType_LeftMouseButtonDown (if MB is still pressed)
And the same for the right and middle MB...
This way, you could start an operation and keep working with it until the Mouse-Click has ended.
Speaking of the Gauge, you could then click and hold the left Mouse button, redraw the gadget as needed, and stop updating when the Mouse button is released.