switch_disable_c
status.i4.v = switch_disable_c(switch_id.i4.v)
This routine will disable a switch which was created by an earlier
call to 'switch_create_c' or 'switch_create_radio_c'.
switch_id ID of desired switch
(returned by prior call to 'switch_create_c' or
'switch_create_radio_c')
(Note: If a negated window ID or a value of
WMNGR_BACKGROUND is passed, all switches
in that window will be disabled.)
This function returns ACNET status values as follows:
CBS_NO_SUCH switch or window does not exist
otherwise previous enable/disable state
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
switch_enable_c, switch_create_c, switch_create_radio_c,
switch_delete_c, switch_window_delete_c, switch_set_flash_c,
switch_read_c, switch_pressed, switch_change_case_c, switch_relabel_c,
switch_set_state_c, switch_text_to_id_c, wn_switch_create_c
C/C++ usage:
int status;
int switch_id;
status = switch_disable_c(switch_id);