PB4B3: Statusbar and Toolbar questions

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

PB4B3: Statusbar and Toolbar questions

Post by USCode »

I have a few questions regarding statusbars and toolbars for PB4 --

For PB4 there are 2 new commands:
ToolBarHeight(#)
StatusBarHeight(#)

As there is only 1 parameter passed, I'm assuming these commands return the bar's heights as they were originally created;
Why not GetToolBarHeight and GetStatusBarHeight?
And if so, why no SetToolBarHeight and SetStatusBarHeight ?

What is the general rule for some commands to have Get/Set and other to not. For example, GadgetType and not GetGadgetType? *Do the commands only use Get/Set when they are updatable at runtime?*

At a higher level and in general, why are statusbar and toolbar not considered just other "Gadgets" like they are in other development environments? Just so they can be split out into their own seperate libraries or some other technicial reason?
Do other standard Gadget commands not apply to them, e.g. SetGadgetColor ?

Just trying to understand in my own mind how the command names are being structured for PB4, as I know Fred is shooting for consistency.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

The main rule is as long the command doesn't have a setter (Set), we removed the 'Get'.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

you DID add them?!? i overlooked damn, darn... another item i could claim was overlooked has been added, grmble...

:-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply