TrackBarGadget event
Posted: Wed Dec 25, 2013 7:15 pm
How can I get an event from a TrackBarGadget?
In this example I get the event tree times.
Is there a way to check the mouse button release?
Thanks for help
In this example I get the event tree times.
Is there a way to check the mouse button release?
Thanks for help
Code: Select all
If OpenWindow(0, 0, 0, 320, 200, "TrackBarGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TrackBarGadget(0, 10, 40, 250, 20, 0, 10, #PB_TrackBar_Ticks)
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Gadget
Select EventGadget()
Case 0
Debug GetGadgetState(0)
EndSelect
Case #PB_Event_CloseWindow
close = #True
EndSelect
Until close = #True
EndIf