Programming Guide



sm_option

Sets a behavior variable

int sm_option(int option, int newval);

option
The behavior variable to change.

newval
The new value, defined in smsetup.h, to assign the option-specified option. To get an option's current value, supply the value NOCHANGE.

Returns

Description

sm_option lets you change Panther behavior variables at runtime—for example, error window attributes, delayed write options, cursor display, and zoom options. You can set one of these variables:

CHAR_VAL_OPT
CLOSELAST_OPT
DA_CENTBREAK
DECIMAL_PLACES
EMSGATT
ENTEXT_OPTION
ER_ACK_KEY
ER_KEYUSE
ER_SP_WIND
EXPHIDE_OPTION
F_EXTREC
F_EXTOPT
F_EXTSEP
FCASE
GA_CURATT
GA_CURMASK
GA_SELATT
GA_SELMASK
IN_ENDCHAR
IN_HARROW
IN_RESET
IN_VALID

IN_VARROW
IN_WRAP
IND_OPTIONS
IND_PLACEMENT
LISTBOX_SELECTION
MESSAGE_WINDOW
OCTAL_SUPPORT
QUIETATT
SB_OPTIONS
SCR_KEY_OPT
SMSGBKATT
SMSGPOS
STEXTATT
TOOLBAR_DISPLAY
TOOLTIP_DISPLAY
TXT_SELECT_ATTR
TXT_SELECT_MASK
ZM_DISPLAY
ZM_SC_OPTIONS
ZM_SH_OPTIONS
WWTAB
XMIT_LAST

Note: Use sm_keyoption to change the behavior of cursor control keys.

See Also

sm_keyoption, sm_soption