2.36 .closeable

.closeable defines whether a window shall be closeable, or if it shall have a close mechanism (e.g. a closebox or a closebutton).

The window contains a close mechanism if the value of this attribute is true. If the value is false, no close mechanism is added.

Definition

  • Data type

    boolean

  • Access

    get, set

  • changed event

    yes

Particularity of Motif

Depending on the display or desktop manager in use, the attribute cannot be changed in the visible state; under certain conditions, it may not be possible to set it at runtime. In some cases, it may help to toggle the visibility of the window.

Since the ability of setting this attribute on Motif directly depends on the display or desktop manager used, it is recommended to set the attribute only statically or immediately after creating an instance with :create(…, true) in the invisible state.