HideTB

Syntax:

HideTB( [#Toolbar], State )

Parameters:

[#Toolbar]

=

optional toolbar number

State

=

new state for the toolbar:


0 = SHOW

1 = HIDE


Description:

Hides or Shows a Toolbar.


The 1st parameter is optional.

If you dont specify the #Toolbar, the current TB

is used for the command, otherwise it shows or hides

the #Toolbar you specified.


Example:

  If HideFlag = 0
    HideTB(1): HideFlag = 1  ; Hide
  Else
    HideTB(0): HideFlag = 0  ; Show
  Endif

  ; Reposition some Gadgets
  ResizeGadget(0, -1, TBheight(), -1, -1)
  ResizeGadget(1, -1, TBheight(), -1, -1)


Supported OS:   Windows