model_server/gala/src/controlObjects.cxx
// checkbox will switch to the opposite state in the case "Confirm"
// button pressed.
checkbox will switch to the opposite state in the case "Confirm"
button pressed.
checkbox will switch to the opposite state in the case " Confirm " button pressed .
int gdListCheck::HandleKeyDown(vevent *event) {
    if(callback_str.length()==0) return vFALSE;
	if((event->binding && strcmp((char *)event->binding, "Confirm") == 0)) {
		if(value==vTRUE) value=vFALSE;
		else             value=vTRUE;
		parentWindow->InvalRect(&windowRect,vwindowINVAL_UPDATE);
		return vTRUE;
	}
	return vFALSE;
}
int gdListCheck :: HandleKeyDown ( vevent * event ) { if ( callback_str . length ( ) == 0 ) return vFALSE ; if ( ( event -> binding && strcmp ( ( char * ) event -> binding , " " ) == 0 ) ) { if ( value == vTRUE ) value = vFALSE ; else value = vTRUE ; parentWindow -> InvalRect ( & windowRect , vwindowINVAL_UPDATE ) ; return vTRUE ; } return vFALSE ; }
checkbox will switch to the opposite state in the case "Confirm"
button pressed.
checkbox will switch to the opposite state in the case " Confirm " button pressed .