Page 1 of 1

PB4B3: Statusbar and Toolbar questions

Posted: Fri Feb 24, 2006 11:13 pm
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.

Posted: Fri Feb 24, 2006 11:55 pm
by Fred
The main rule is as long the command doesn't have a setter (Set), we removed the 'Get'.

Posted: Sat Feb 25, 2006 9:11 pm
by blueznl
you DID add them?!? i overlooked damn, darn... another item i could claim was overlooked has been added, grmble...

:-)