model_server/gala/src/controlObjects.cxx
// mouse button press handling, switching the checkbox to 
// the opposite state
mouse button press handling, switching the checkbox to
the opposite state
mouse button press handling switching the checkbox to the opposite state
int gdListCheck::HandleButtonDown(vevent* event) {
	if(callback_str.length()==0) return vFALSE;
	if(indicator.ContainsPoint(event->GetX(),event->GetY())) {
		if(value==vTRUE) value=vFALSE;
		else             value=vTRUE;
		parentWindow->InvalRect(&windowRect,vwindowINVAL_UPDATE);
	}
	return vTRUE;
}
int gdListCheck :: HandleButtonDown ( vevent * event ) { if ( callback_str . length ( ) == 0 ) return vFALSE ; if ( indicator . ContainsPoint ( event -> GetX ( ) , event -> GetY ( ) ) ) { if ( value == vTRUE ) value = vFALSE ; else value = vTRUE ; parentWindow -> InvalRect ( & windowRect , vwindowINVAL_UPDATE ) ; } return vTRUE ; }
mouse button press handling, switching the checkbox to
the opposite state
mouse button press handling switching the checkbox to the opposite state