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

FX::FXDialogBox Class Reference

#include <FXDialogBox.h>

Inheritance diagram for FX::FXDialogBox:

FX::FXTopWindow FX::FXShell FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject 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 Methods

 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.

 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.

virtual FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.


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.