Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXMessageBox Class Reference

A Message Box is a convenience class which provides a dialog for very simple common yes/no type interactions with the user. More...

#include <FXMessageBox.h>

Inheritance diagram for FX::FXMessageBox:

FX::FXDialogBox FX::FXTopWindow FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Types

enum  {
  ID_CLICKED_YES = FXDialogBox::ID_LAST,
  ID_CLICKED_NO,
  ID_CLICKED_OK,
  ID_CLICKED_CANCEL,
  ID_CLICKED_QUIT,
  ID_CLICKED_SAVE,
  ID_CLICKED_SKIP,
  ID_CLICKED_SKIPALL,
  ID_LAST
}

Public Member Functions

 FXMessageBox (FXWindow *owner, const FXString &caption, const FXString &text, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0)
 FXMessageBox (FXApp *app, const FXString &caption, const FXString &text, FXIcon *ic=NULL, FXuint opts=0, FXint x=0, FXint y=0)

Static Public Member Functions

static FXuint error (FXWindow *owner, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint error (FXApp *app, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint 
warning (FXWindow *owner, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint static FXuint 
warning (FXApp *app, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint static FXuint
static FXuint 
question (FXWindow *owner, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint static FXuint
static FXuint static FXuint 
question (FXApp *app, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint static FXuint
static FXuint static FXuint
static FXuint 
information (FXWindow *owner, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4
static FXuint static FXuint
static FXuint static FXuint
static FXuint static FXuint
static FXuint static FXuint 
information (FXApp *app, FXuint opts, const char *caption, const char *message,...) FX_PRINTF(4

Detailed Description

A Message Box is a convenience class which provides a dialog for very simple common yes/no type interactions with the user.

The message box has an optional icon, a title string, and the question which is presented to the user. It also has up to three buttons which furnish standard responses to the question. Message boxes are usually ran modally: the question must be answered before the program may continue.

See also:


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_CLICKED_YES 
ID_CLICKED_NO 
ID_CLICKED_OK 
ID_CLICKED_CANCEL 
ID_CLICKED_QUIT 
ID_CLICKED_SAVE 
ID_CLICKED_SKIP 
ID_CLICKED_SKIPALL 
ID_LAST 


Constructor & Destructor Documentation

FX::FXMessageBox::FXMessageBox FXWindow owner,
const FXString caption,
const FXString text,
FXIcon ic = NULL,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0
 

Construct message box with given caption, icon, and message text.

FX::FXMessageBox::FXMessageBox FXApp app,
const FXString caption,
const FXString text,
FXIcon ic = NULL,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0
 

Construct free floating message box with given caption, icon, and message text.


Member Function Documentation

static FXuint FX::FXMessageBox::error FXWindow owner,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show a modal error message.

The text message may contain printf-tyle formatting commands.

static FXuint static FXuint FX::FXMessageBox::error FXApp app,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show modal error message, in free floating window.

static FXuint static FXuint static FXuint FX::FXMessageBox::warning FXWindow owner,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show a modal warning message The text message may contain printf-tyle formatting commands.

static FXuint static FXuint static FXuint static FXuint FX::FXMessageBox::warning FXApp app,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show modal warning message, in free floating window.

static FXuint static FXuint static FXuint static FXuint static FXuint FX::FXMessageBox::question FXWindow owner,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show a modal question dialog The text message may contain printf-tyle formatting commands.

static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint FX::FXMessageBox::question FXApp app,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show modal question message, in free floating window.

static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint FX::FXMessageBox::information FXWindow owner,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show a modal information dialog The text message may contain printf-tyle formatting commands.

static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint static FXuint FX::FXMessageBox::information FXApp app,
FXuint  opts,
const char *  caption,
const char *  message,
  ...
[static]
 

Show modal information message, in free floating window.

Copyright © 1997-2005 Jeroen van der Zijp