wn_switch_enable_c
status.i4.v = wn_switch_enable_c(switch_id.i4.v)
This routine will enable a switch which was disabled by an earlier
call to 'wn_switch_disable_c'.
switch_id ID of desired switch
(returned by prior call to 'wn_switch_create_c')
(Note: If a negated window ID is passed, all switches
in that window will be enabled.)
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:
wn_switch_disable_c, wn_switch_create_c, wn_switch_delete_c,
wn_switch_window_delete_c, wn_switch_read_c, wn_switch_pressed
wn_switch_set_state_c, wn_switch_relabel_c, switch_enable_c
C/C++ usage:
int status;
int switch_id;
status = wn_switch_enable_c(switch_id);