Character windows - windows

Windows


Extra properties


border = integer
shadow = integer

Border and shadow <border_and_shadow> styles.


Unavailable properties and features

Tab control windows; :doc:` <../040_winobj/window/win_icon>`winclass; icon


Window events and functions

The only window events that can be generated are EV_CREATE, EV_DESTROY, EV_GAIN_FOCUS and EV_LOSE_FOCUS.


Window size

max_width = integer
max_height = integer

These values exclude border and shadow, if present.

If a window’s maximum size is decreased and subsequently increased, the newly revealed part of the window is cleared using the background character defined in Section 11 of the terminal parameter file (almost invariably the space character).

If a !screen declaration is present, Sculptor selects the smallest size capable of accommodating the width and height specified in this declaration, from the sizes defined in the terminal parameter file.

min_width = integer
min_height = integer

These values exclude border and shadow, if present.

view_width = integer
view_height = integer

The user cannot change the viewing size by dragging the window border.

See Window size.


Window states

The only states that can be tested are WS_DISABLED and WS_INVISIBLE.


Window style


WS_INDENT

Pens 3 and 4 from the window palette are used to draw the border. This flag is ignored if no border is defined. See Border and shadow clauses for more information about character window borders.

WS_STANDOUT

Pens 5 and 6 from the window palette are used to draw the border. This flag is ignored if no border is defined.

The only other style flags that can be used are WS_DISABLED, WS_INVISIBLE and WS_PLAIN.


Window title

The title is displayed centred, and cannot be displayed at all if the window has no top border.


RELATED TOPICS

Character windows