Re: [ROOT] Problem displaying text in TGStatusBar: TGMsgBox?

From: cstrato (aon.912121399@aon.at)
Date: Mon Jun 16 2003 - 23:25:23 MEST


Dear Ilka

Thank you very much for this tip, it works great.

BTW, originally I wanted to display a TGMsgBox and change the
msg-text in the while-loop but I could not find any way to change
the msg-text.
Do you or someone else have a hint how this could be done?

Best regards
Christian


Ilka Antcheva wrote:

> Hi Christian,
>
> I have a macro in which I am using gClient->ProcessEventsFor(TGWindow *w)
> method instead of ProcessEvents and it works. Here are the lines of code:
>  
>    TGFrameElement *f;
>    TIter next(fMain->GetList());       //fMain is a main frame
>     while ((f = (TGFrameElement *)next())) {
>  
>           sprintf(buf, " Frame <%s>...",f->fFrame->GetName());
>           fStatusBar->SetText(buf, 0);
>           gClient->ProcessEventsFor(fStatusBar);
>           gSystem->Sleep(600);   //just to see the  text into the 
> status bar
>  
>     }
>
> Best regards, Ilka
>  
>
>



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET