TBheight | |||
Syntax: | |||
height = TBheight( [#Toolbar] ) | |||
Parameters: | |||
| |||
Return Values: | |||
| |||
Description: | |||
Returns the Y-Size (Height) of the Toolbar. s If no parameter is given, it returns the height of the currently used TB, otherwise it returns the height of the Toolbar specified in the Parameter. (beginning with 0) | |||
Example: | |||
; Place 2 Buttons directly under the Toolbar ButtonGadget( 0, 100, TBheight(), 60, 25, "Quit") ButtonGadget( 1, 160, TBheight(), 60, 25, "Testing") ; Hide TB and reposition your Gadgets HideTB(1) ResizeGadget( 0, -1, TBheight(), -1, -1) ResizeGadget( 1, -1, TBheight(), -1, -1) | |||
Remarks: | |||
When the Toolbar is hidden, this command returns 0 for the Height. You can make a AutoHide-Toolbar and reposition the gadgets on-the-fly to a new Y-Position with this command. | |||
|