toggle_switch_enable
status.i4.v = toggle_switch_enable(identifier.g.v)
This routine will enable a toggle switch which was disabled by an
earlier call to toggle_switch_disable.
identifier identifier of desired switch whose type depends on
the most recent call to toggle_switch_set_id_type_c
(TOGGLE_SWITCH_BY_ID -> use four byte ID value returned
by a prior call to
toggle_switch_create_c
(default),
TOGGLE_SWITCH_BY_HANDLE -> use ASCII handle string)
(Note: If the identifier type is TOGGLE_SWITCH_BY_ID
and a negated window ID or a value of WMNGR_BACKGROUND
is passed, all toggle switches in that window will be
enabled.)
This function returns ACNET status values as follows:
CBS_NO_SUCH switch does not exist
otherwise previous enable/disable state
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
toggle_switch_set_id_type_c, toggle_switch_disable,
toggle_switch_create_c, toggle_switch_delete,
toggle_switch_window_delete_c, toggle_switch_read,
toggle_switch_set_c, toggle_switch_matrix_c
C/C++ usage:
int status;
int switch_id;
status = toggle_switch_enable((void *) &switch_id);