Re: [ROOT] Message Box

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Aug 16 2001 - 14:44:41 MEST


Hi Thomas,

  use the TGMsgBox class. For examples see $ROOTSYS/tutorials/guitest.C
and dialogs.C.

Cheers, Fons.



Thomas Bretz wrote:
> 
> Hello,
> 
> I want to open a message box. Something like a canvas with a text
> message and (maybe) an icon inside, in which I can display a simple
> message like: "This file cannot be opened." and a close button. It
> should be modal.
> 
> Is there an easy way for such a thing or do I have to create my own
> Message-Box class?
> 
> Something like:
> 
> {
>   TMessageBox *box = new TMessageBox(x, y, "The value must be in the
> range between 0 and 1.");
> 
>   while (box->IsOpen())
>     usleep(1);
> 
>   delete box;
> }
> 
> Thanks,
> Thomas.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:57 MET