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

FX::FXDialogBox Class Reference

DialogBox window. More...

#include <FXDialogBox.h>

Inheritance diagram for FX::FXDialogBox:

FX::FXTopWindow FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXChoiceBox FX::FXColorDialog FX::FXDirDialog FX::FXFileDialog FX::FXFontDialog FX::FXInputDialog FX::FXMessageBox FX::FXPrintDialog FX::FXProgressDialog FX::FXReplaceDialog FX::FXWizard List of all members.

Public Types

enum  {
  ID_CANCEL = FXTopWindow::ID_LAST,
  ID_ACCEPT,
  ID_LAST
}

Public Member Functions

 FXDialogBox (FXApp *a, const FXString &name, FXuint opts=DECOR_TITLE|DECOR_BORDER, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=10, FXint pr=10, FXint pt=10, FXint pb=10, FXint hs=4, FXint vs=4)
 FXDialogBox (FXWindow *owner, const FXString &name, FXuint opts=DECOR_TITLE|DECOR_BORDER, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=10, FXint pr=10, FXint pt=10, FXint pb=10, FXint hs=4, FXint vs=4)
virtual FXuint execute (FXuint placement=PLACEMENT_CURSOR)

Detailed Description

DialogBox window.

When receiving ID_CANCEL or ID_ACCEPT, the DialogBox breaks out of the modal loop and returns FALSE or TRUE, respectively. To close the DialogBox when not running modally, simply send it ID_HIDE.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_CANCEL  Closes the dialog, cancel the entry.
ID_ACCEPT  Closes the dialog, accept the entry.


Constructor & Destructor Documentation

FX::FXDialogBox::FXDialogBox FXApp a,
const FXString name,
FXuint  opts = DECOR_TITLE|DECOR_BORDER,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 10,
FXint  pr = 10,
FXint  pt = 10,
FXint  pb = 10,
FXint  hs = 4,
FXint  vs = 4
 

Construct free-floating dialog.

FX::FXDialogBox::FXDialogBox FXWindow owner,
const FXString name,
FXuint  opts = DECOR_TITLE|DECOR_BORDER,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 10,
FXint  pr = 10,
FXint  pt = 10,
FXint  pb = 10,
FXint  hs = 4,
FXint  vs = 4
 

Construct dialog which will always float over the owner window.


Member Function Documentation

virtual FXuint FX::FXDialogBox::execute FXuint  placement = PLACEMENT_CURSOR  )  [virtual]
 

Run modal invocation of the dialog.

Reimplemented in FX::FXInputDialog, and FX::FXReplaceDialog.

Copyright © 1997-2005 Jeroen van der Zijp