2.417 .width

This attribute specifies the current width of the object.

Definition

  • Data type

    integer (may be 0)

  • Access

    get, set

  • changed event

    yes

.width defines the width of the entire notebook object with all its elements. If the width is defined too small, a minimum value depending on the window system will be used. The width must not be 0, since the required width cannot be calculated.

In tablefield the attribute can also have the value 0. This means that the Dialog Manager shall calculate the corresponding size in such a way that all elements can be displayed in the corresponding direction, without a scrollbar being needed. If, for example, the width of the tablefield is set at 0, the tablefield will be wide enough that all columns can be displayed completely in the object.

With the toolbar, .width (without index) defines the default value for the values not set by .width[class].

See also

Attributes .height, .real_width, .xauto, .xleft, .xright