Window Decoration

Window decorations are set by the -dec switch on window allocation commands, e.g. wgraphic, wpanel etc.

The typical situation is to set decorations on/off by -dec or -no_dec, but a finer level of control is available for the appearance and behavior of individual facilities by setting -dec=<n> where n has a value greater than 1 and is a combination of values as follows:

Value

Details

0

Show no window decoration at all. This may also be specified by -no_dec

1

Show all window decoration. This may also be specified by -dec, or by omitting the -dec switch altogether.

+2

Enable the Close facility, allowing the window to be closed by user action.

+4

Enable the Minimize facility, allowing the window to be iconized by user action.

+8

Enable the Maximize facility, allowing the window to be resized to full-screen by user action.

+16

Display the title bar. This will be displayed irrespective, if any of the other buttons are enabled.

+32

Enable the Resize facility, allowing the window to be resized. Suppression of this also suppresses the Maximize facility. See Resize Note below.

+64

Enable the Move facility. Without this the window cannot be moved by user action.

Resize Note: The window resizing facility can also be set by the -fix/no_fix switch. This will override any resize increment (+32) specified in the decoration value. If the -fix/no_fix switch is omitted, and the decoration value is 1 or 0, the default resizing capability will depend on the window type, e.g. graphic, panel etc.