model_server/gala/src/controlObjects.cxx
//------------------------------------------------------------------------------------
// Called every time spin selection changed. m_CurrentIndex & m_CurrentText 
// contain old selections at this moment, will be updated immidiatly after
// this function exit.This version just call TCL string if it is not empty.
//------------------------------------------------------------------------------------
Called every time spin selection changed. m_CurrentIndex & m_CurrentText
contain old selections at this moment, will be updated immidiatly after
this function exit.This version just call TCL string if it is not empty.
Called every time spin selection changed . m_CurrentIndex & m_CurrentText contain old selections at this moment will be updated immidiatly after this function exit . This version just call TCL string if it is not empty .
void gdTextSpinner::OnSelectionChanged(int newIndex, vchar* newText) {
	gString cmd;
	cmd.sprintf((vchar*)"%s %d {%s} %d {%s}", GetChangeCallback(), 
		newIndex, newText,
		m_CurrentIndex, m_CurrentText);
	gala_eval(interp(), (char*)(vchar*)cmd);
}
void gdTextSpinner :: OnSelectionChanged ( int newIndex , vchar * newText ) { gString cmd ; cmd . sprintf ( ( vchar * ) " " , GetChangeCallback ( ) , newIndex , newText , m_CurrentIndex , m_CurrentText ) ; gala_eval ( interp ( ) , ( char * ) ( vchar * ) cmd ) ; }
Called every time spin selection changed.
Called every time spin selection changed .