Mouse Click Ended

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Mouse Click Ended

Post by jamirokwai »

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.
Regards,
JamiroKwai