%co - Options for Edit

Purpose

To modify subsequent %rd (Edit Integer), %rf (Edit Floating Point), %rs (Edit String), %re (Multiline Edit Box), %el (Editable Combo Box) boxes.

Syntax

winio@('%co[options]')

Description

options is a list containing one or more of:

 

 

check_on_focus_loss 

Perform checks, calls the call-back, and updates the corresponding data item only when focus is transferred to another control. This is particularly valuable if numeric limits have been imposed by %il (Integer Limit)/%fl (Float Limit).

 

data_border

Put a border round data boxes (default).

 

full_check

Perform checks and call-back every change (default).

 

right_justify

Align the text to the right border. Not for %el (Editable Combo Box).

 

left_justify

Align the text to the left border (default).

 

no_data_border

Omit border round data boxes. Not for %el (Editable Combo Box).

 

warn_on_edit

*Changes the error icon for a user edit to a warning icon.

 

alert_on_update

*Changes from no icon to an error icon for a programmed update.

 

warn_on_update

*Implies [alert_on_update] and changes the error icon to a warning icon.

 

limit_on_update

*Implies [alert_on_update] and causes the associated variable to be corrected.

 

stet_on_update

*Implies [alert_on_update] but prevents the display from being corrected.


Options that are marked with an asterisk (*) provide alternatives to the default action for %~il and %~fl when an out-of-range value is either a) input by a user keyboard edit or b) provided by a programmed update to the associated variable (e.g. together with a call to window_update@).
The default action for a user edit is: error icon shown, display is not corrected, associated variable corrected.
The default action for a programmed update is: no icon is shown, display is corrected, associated variable is not corrected.

 

Example

winio@('%co[check_on_focus_loss]')

See also

%rd (Edit Integer), %rf (Edit Floating Point), %rs (Edit String), %re (Multiline Edit Box), %el (Editable Combo Box)


 

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited