Character windows - properties

A clause or value which is not appropriate to the windowing system being used (Sculptor character windows/ GUI windows) is ignored, or the nearest equivalent value used.


Border and shadow

Border and shadow styles are available for use with character windows only.


Colours

Colour clauses have no effect under character windows. Pens are used instead. See Palettes and Pens.


Edit mode

The following extra mode is available:

EM_OVERTYPE

Select overtype mode, rather than insert mode, for entry into this box.

In INSERT mode, when a character is typed any existing characters which are under and to the right of the cursor are pushed to the right. If a character is pushed past the end of the textbox, it is lost, unless the linked field is wider than the textbox. In this mode the BACKSPACE key moves all characters to the right of the cursor one position to the left.

In OVERTYPE mode, when a character is typed it overwrites the existing character under the cursor. In this mode the BACKSPACE key creates a space.

Note that the operator may toggle between INSERT and OVERTYPE modes at run time.


RELATED TOPICS

Edit mode

sys.EditMode


Fonts

Font clauses have no effect under character windows.

Courier New is a fixed pitch font, suitable for use with Sculptor 2 character windows programs that are being converted to GUI. For new programs, a proportional font is generally more suitable, and a commonly used one is “MS Sans Serif@8”.


Palettes

Under character windows, the palette also determines the border and shadow styles (if any) for windows and controls. Section 11 stores the border and shadow styles; Section 12 the pens and attributes.

Windows palettes cannot be used under character windows. The default palette, both for the task window and for user-defined windows, is PAL_WINDOW (11). This palette may be modified.


Style flags

Only the following style flags can be used. Other style flags are ignored.

WS_DISABLED

Create control disabled

WS_CHECKED, WS_SELECTED

Create button checked

WS_INVISIBLE

Create object invisible

WS_NOTABSTOP

Stop a control from receiving input focus

WS_CANCEL_BUTTON

Define a cancel button for the dialog command

WS_DEFAULT_BUTTON

Define a default button for the dialog command

WS_INDENT

Indent border. Pens 3 and 4 are used.

WS_STANDOUT

Standout border. Pens 5 and 8 are used.

WS_PLAIN

Border without indent or standout.


Tooltips

Tooltips cannot be used.


RELATED TOPICS

Character windows