MouseUp catching
Posted: Mon Feb 23, 2015 5:18 am
Hi,
As quit many do try to catch MouseUp-events, I found this very simple solution (am I really the first one ?).
To catch MouseUp when moving the TrackBarGadget I used API's, but the code below works too.
This will most probably work for all Gadget's as well. No mouse coordinates etc. are needed.
(I hopefully wont forget it for myself
)
As quit many do try to catch MouseUp-events, I found this very simple solution (am I really the first one ?).
To catch MouseUp when moving the TrackBarGadget I used API's, but the code below works too.
This will most probably work for all Gadget's as well. No mouse coordinates etc. are needed.
(I hopefully wont forget it for myself

Code: Select all
Select WaitWindowEvent()
Case #WM_LBUTTONUP
Select GetActiveGadget()
Case 1 :
Case 2 :
...
EndSelect
...
EndSelect