Make TrackBarGadget() support #PB_EventType_Change

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Make TrackBarGadget() support #PB_EventType_Change

Post by BarryG »

So we know when its position has been changed, without us having to maintain a "current status" variable to remember the old and new state after detecting #PB_Event_Gadget for it.

There's a deeper topic about it here -> https://www.purebasic.fr/english/viewto ... 13&t=74920

But every post there is just a workaround, when a simple #PB_EventType_Change notification would be great. Sometimes you just need to know if it's been moved, rather than care what value it now is, and watching old/new values is the extra code needed at the moment to find out. Thanks.
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: Make TrackBarGadget() support #PB_EventType_Change

Post by nsstudios »

+1
Post Reply