src/experiments/k4/K4GUI/src/mycommands.cc
void write_state_to_onoff(PtWidget_t *widget, short newstate)
{
  PtArg_t args[1];
  PtSetArg(&args[0], Pt_ARG_ONOFF_STATE, newstate,0);
  PtSetResources(widget,1,args);
}
/* utility function for changing current state of the onoff button */
utility function for changing current state of the onoff button
utility function for changing current state of the onoff button
void write_state_to_onoff(PtWidget_t *widget, short newstate)
{
  PtArg_t args[1];
  PtSetArg(&args[0], Pt_ARG_ONOFF_STATE, newstate,0);
  PtSetResources(widget,1,args);
}
void write_state_to_onoff ( PtWidget_t * widget , short newstate ) { PtArg_t args [ 1 ] ; PtSetArg ( & args [ 0 ] , Pt_ARG_ONOFF_STATE , newstate , 0 ) ; PtSetResources ( widget , 1 , args ) ; }
utility function for changing current state of the onoff button
utility function for changing current state of the onoff button