[Implemented] Scroll Gadget Min/Max Set

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

[Implemented] Scroll Gadget Min/Max Set

Post by Shannara »

I think it would be wonderfull if we are able to set the scrollbar's min and max after the bar is created, instead of having to destroy and recreate the scroll bar everytime we need to change those values.
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

to destroy and recreate the scroll bar everytime
what about:

Code: Select all

SendMessage_(GadgetID(#ScrollBar_0), #SBM_SETRANGE, newMin, newMax)
:?:
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

My hero :) I'll try that, thanks!
Post Reply