TBwidth

Syntax:

width = TBwidth( [#Toolbar] )

Parameters:

#Toolbar

=

number of the toolbar


Return Values:

width

=

width of the toolbar


Description:

Returns the X-Size (Width) of the Toolbar.


s

If no parameter is given, it returns the width

of the currently used TB, otherwise it returns

the width of the Toolbar specified in the Parameter.

(beginning with 0)


Example:

  ; Resize the current Window to the Toolbar size
  ResizeWindow(TBwidth(), TBheight())

Remarks:

When the Toolbar is hidden, this command returns 0 for the Width.


Attention:

The real Width of a Toolbar is always the Size of the whole Window

where the TB is in.

The command TBwidth() returns the "virtual" size of the Toolbar.

It returns the X-coordinate of the end of the rightmost button.


Very useful for resizing a Window to the virtual TB-Width.

(especially useful for resizing the TBīs parent Window)



Supported OS:   Windows