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

	{

	  PtArg_t args[1];
	  unsigned short *newaxis;
	  
	  // index is Pt_ARG_CBOX_SEL_ITEM
	  /* eliminate 'unreferenced' warnings */
	  widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  
	  PtSetArg( &args[0], Pt_ARG_CBOX_SEL_ITEM, &newaxis, 0 );
	  PtGetResources(ABW_AxisSelector2, 1, args);
	  current_axis[1] = *newaxis - 1;
	  printf("Trend 2 current axis = %d\n",current_axis[1]);
	return( Pt_CONTINUE );

	}
/* this function is called when users select a different axis to be displayed
   in trend viewer 2 */
this function is called when users select a different axis to be displayed
in trend viewer 2
this function is called when users select a different axis to be displayed in trend viewer 2
int
Trend2AxisChange( PtWidget_t *widget, ApInfo_t *apinfo, PtCallbackInfo_t *cbinfo )
	{
	  PtArg_t args[1];
	  unsigned short *newaxis;
	  widget = widget, apinfo = apinfo, cbinfo = cbinfo;
	  PtSetArg( &args[0], Pt_ARG_CBOX_SEL_ITEM, &newaxis, 0 );
	  PtGetResources(ABW_AxisSelector2, 1, args);
	  current_axis[1] = *newaxis - 1;
	  printf("Trend 2 current axis = %d\n",current_axis[1]);
	return( Pt_CONTINUE );
	}
int Trend2AxisChange ( PtWidget_t * widget , ApInfo_t * apinfo , PtCallbackInfo_t * cbinfo ) { PtArg_t args [ 1 ] ; unsigned short * newaxis ; widget = widget , apinfo = apinfo , cbinfo = cbinfo ; PtSetArg ( & args [ 0 ] , Pt_ARG_CBOX_SEL_ITEM , & newaxis , 0 ) ; PtGetResources ( ABW_AxisSelector2 , 1 , args ) ; current_axis [ 1 ] = * newaxis - 1 ; printf ( " \n " , current_axis [ 1 ] ) ; return ( Pt_CONTINUE ) ; }
this function is called when users select a different axis to be displayed
in trend viewer 2
this function is called when users select a different axis to be displayed in trend viewer 2
// index is Pt_ARG_CBOX_SEL_ITEM /* eliminate 'unreferenced' warnings */