model_server/gala/src/controlObjects.cxx
//------------------------------------------------------------------------------------
// We need this function to catch GALAXY notifications and call OnSelectionChanged
// function to pass new selection to the TCL.
//------------------------------------------------------------------------------------
We need this function to catch GALAXY notifications and call OnSelectionChanged
function to pass new selection to the TCL.
We need this function to catch GALAXY notifications and call OnSelectionChanged function to pass new selection to the TCL .
void gdTextSpinner::ObserveDialogItem(vevent *event) {
	char text[201];
	int  index;
	GetText((unsigned char *)text,200);
	index=FindTextIndex((unsigned char *)text);
	if(m_ChangeCallback.length()!=0)
		OnSelectionChanged(index,(unsigned char *) text);
	m_CurrentText=text;
	m_CurrentIndex=index;
}
void gdTextSpinner :: ObserveDialogItem ( vevent * event ) { char text [ 201 ] ; int index ; GetText ( ( unsigned char * ) text , 200 ) ; index = FindTextIndex ( ( unsigned char * ) text ) ; if ( m_ChangeCallback . length ( ) != 0 ) OnSelectionChanged ( index , ( unsigned char * ) text ) ; m_CurrentText = text ; m_CurrentIndex = index ; }
We need this function to catch GALAXY notifications and call OnSelectionChanged
function to pass new selection to the TCL.
We need this function to catch GALAXY notifications and call OnSelectionChanged function to pass new selection to the TCL .