src/experiments/k4/K4GUI/src/position_commands.cc
int
Axis7Toggle( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )

	{

	/* eliminate 'unreferenced' warnings */
	  widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  int naxis = 7;
	  int stat = read_state_from_onoff(widget);
	  if (stat == 0){
	      if (statusbits[naxis] != OFF){
		    //off
		    statusbits[naxis] = OFF;
		    write_text_to_widget(widget,OFF_TEXT, Pg_BLUE);
	      }
	  }
	  else {
	      if (statusbits[naxis] == OFF){
		    //on
		    statusbits[naxis] = ON;
		    write_text_to_widget(widget,ON_TEXT,Pg_RED);
	      }
	  }
	return( Pt_CONTINUE );

	}
/* this function is called when users toggles onoff button for axis 7 */
this function is called when users toggles onoff button for axis 7
this function is called when users toggles onoff button for axis 7
int
Axis7Toggle( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )
	{
	  widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  int naxis = 7;
	  int stat = read_state_from_onoff(widget);
	  if (stat == 0){
	      if (statusbits[naxis] != OFF){
		    statusbits[naxis] = OFF;
		    write_text_to_widget(widget,OFF_TEXT, Pg_BLUE);
	      }
	  }
	  else {
	      if (statusbits[naxis] == OFF){
		    statusbits[naxis] = ON;
		    write_text_to_widget(widget,ON_TEXT,Pg_RED);
	      }
	  }
	return( Pt_CONTINUE );
	}
int Axis7Toggle ( PtWidget_t * widget , ApInfo_t * apinfo , PtCallbackInfo_t * cbinfo ) { widget = widget , apinfo = apinfo , cbinfo = cbinfo ; int naxis = 7 ; int stat = read_state_from_onoff ( widget ) ; if ( stat == 0 ) { if ( statusbits [ naxis ] != OFF ) { statusbits [ naxis ] = OFF ; write_text_to_widget ( widget , OFF_TEXT , Pg_BLUE ) ; } } else { if ( statusbits [ naxis ] == OFF ) { statusbits [ naxis ] = ON ; write_text_to_widget ( widget , ON_TEXT , Pg_RED ) ; } } return ( Pt_CONTINUE ) ; }
this function is called when users toggles onoff button for axis 7
this function is called when users toggles onoff button for axis 7
/* eliminate 'unreferenced' warnings */ //off //on