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

From: Ilka Antcheva (Ilka.Antcheva@cern.ch)
Date: Tue Jun 17 2003 - 11:45:52 MEST


Hi Christian,

A message box by definition is any non-editable dialog box
that provides information, draws user attention to something or asks
a question. Following this purpose TGMsgBox constructor has as a
parameter the message string to be displayed. The only solution for the
moment I can see is to create a dialog box using TGTransientFrame
and GUI widgets you need.

Best regards, Ilka


cstrato wrote:

> 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