Main Page   Modules   Class Hierarchy   Compound List   Compound Members  

GAUGE3D::GMessageBox Class Reference

Opens a simple messagebox using the native GUI. More...

#include <gauge3d/osabstraction/messagebox.h>

Inherits GAUGE3D::GObject.

List of all members.

Public Types

enum  tEnum {
  WARNING, ERROR, QUESTION, INFORMATION,
  ABORT_RETRY_IGNORE, OK_CANCEL, RETRY_CANCEL, YES_NO,
  YES_NO_CANCEL, OK, ABORT, CANCEL,
  RETRY, IGNORE, YES, NO
}
 Flags and settings used by GMessageBox. More...


Public Methods

 GMessageBox (GString message,tEnum type,tEnum buttons)
 Create a message box, but don't display it yet. More...

 ~GMessageBox ()
 Destroy the message box.

tEnum Run ()
 Run the message box (modal). More...


Detailed Description

Opens a simple messagebox using the native GUI.

This class can be used to display simple message boxes before the graphical sub-system is available. It should not be used once the graphics system is running, however, as the message box may not be visible to the user at that time.


Member Enumeration Documentation

enum GAUGE3D::GMessageBox::tEnum
 

Flags and settings used by GMessageBox.

Remarks:
Sorry about the limited button sets. That was Windows' fault. :(
Enumeration values:
WARNING   Message type.
ERROR   Message type.
QUESTION   Message type.
INFORMATION   Message type.
ABORT_RETRY_IGNORE   Button set.
OK_CANCEL   Button set.
RETRY_CANCEL   Button set.
YES_NO   Button set.
YES_NO_CANCEL   Button set.
OK   Button set / User response.
ABORT   User response.
CANCEL   User response.
RETRY   User response.
IGNORE   User response.
YES   User response.
NO   User response.


Constructor & Destructor Documentation

GAUGE3D::GMessageBox::GMessageBox ( GString message,
tEnum type,
tEnum buttons )
 

Create a message box, but don't display it yet.

Parameters:
message   The text of the message to display.
type   One of the message type values in tEnum.
buttons   One of the button sets in tEnum.


Member Function Documentation

tEnum GAUGE3D::GMessageBox::Run ( )
 

Run the message box (modal).

Returns:
One of the user response values in tEnum. This is the button which the user clicked on.
Remarks:
This function does not return until the user has clicked on a button.


The documentation for this class was generated from the following file:
Generated at Tue Jan 30 17:07:34 2001 for gauge3d by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000