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

Luis Ibanez luis . ibanez at kitware . com
Thu, 08 May 2003 13:01:03 -0400


Hi Joris,

Your use of the string looks fine.
When you said that "it didn't work",
Do you mean that it didn't comile ?

In that case, could you please share the
error message with us.

Thanks


   Luis


----------------------------------------
J Mst wrote:
> 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
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>