[Insight-users] how to connect the observer message to the GUI?

J Mst gave_edgar at hotmail . com
Thu, 08 May 2003 16:08:09 +0000


Hi again :), that was a little mistake.

I start where I ended.

a snippet of the code:

********************************************************************
CString textOut

if( typeid( event ) != typeid( itk::IterationEvent ) )
      {
      return;
      }

		std::stringstream text;
		text << m_optimizer->GetCurrentIteration() << " = ";
		text << m_optimizer->GetValue() << " : ";
		text << m_optimizer->GetCurrentPosition() << std::endl;
		TextOut = text.str().c_str() );
********************************************************************

I want to connect the TextOut varable to the edit box variable in the main 
program. I tried the method: CLASSNAME.VARIABLENAME but that didnt work.

Is there a simple way to connect and thus display the message in the GUI?

All feedback will be appreciated.

Joris

_________________________________________________________________
MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl