Dialog Class Reference

A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the screen. It can contain controls and other windows and is usually used to allow the user to make some choice or to answer a question. More...

Inheritance diagram for Dialog:

Window EvtHandler wxObject IDisposable MultiChoiceDialog SingleChoiceDialog ColourDialog DirDialog FileDialog FindReplaceDialog FontDialog MessageDialog NumberEntryDialog PageSetupDialog PrintDialog ProgressDialog TextEntryDialog Wizard

List of all members.

Public Types

enum  {
  wxCENTER = 0x00000001,
  wxCENTRE = 0x00000001,
  wxYES = 0x00000002,
  wxOK = 0x00000004,
  wxNO = 0x00000008,
  wxCANCEL = 0x00000010,
  wxYES_NO = (wxYES | wxNO),
  wxYES_DEFAULT = 0x00000000,
  wxNO_DEFAULT = 0x00000080,
  wxICON_EXCLAMATION = 0x00000100,
  wxICON_HAND = 0x00000200,
  wxICON_WARNING = wxICON_EXCLAMATION,
  wxICON_ERROR = wxICON_HAND,
  wxICON_QUESTION = 0x00000400,
  wxICON_INFORMATION = 0x00000800,
  wxICON_STOP = wxICON_HAND,
  wxICON_ASTERISK = wxICON_INFORMATION,
  wxICON_MASK = (0x00000100|0x00000200|0x00000400|0x00000800),
  wxFORWARD = 0x00001000,
  wxBACKWARD = 0x00002000,
  wxRESET = 0x00004000,
  wxHELP = 0x00008000,
  wxMORE = 0x00010000,
  wxSETUP = 0x00020000
}

Public Member Functions

 this (IntPtr wxobj)
 this ()
 this (Window parent, int id, string title, Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=wxDEFAULT_DIALOG_STYLE, string name=wxDialogNameStr)
 this (Window parent, string title, Point pos=wxDefaultPosition, Size size=wxDefaultSize, int style=wxDEFAULT_DIALOG_STYLE, string name=wxDialogNameStr)
bool Create (Window window, int id, string title, inout Point pos, inout Size size, int style, string name)
int ReturnCode ()
void ReturnCode (int value)
override string Title ()
override void Title (string value)
void EndModal (int retCode)
void SetIcon (Icon icon)
virtual int ShowModal ()
deprecated void Modal (bool value)
bool Modal ()

Public Attributes

const string wxDialogNameStr = "dialog"


Detailed Description

A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the screen. It can contain controls and other windows and is usually used to allow the user to make some choice or to answer a question.

Member Enumeration Documentation

anonymous enum

Enumerator:
wxCENTER 
wxCENTRE 
wxYES 
wxOK 
wxNO 
wxCANCEL 
wxYES_NO 
wxYES_DEFAULT 
wxNO_DEFAULT 
wxICON_EXCLAMATION 
wxICON_HAND 
wxICON_WARNING 
wxICON_ERROR 
wxICON_QUESTION 
wxICON_INFORMATION 
wxICON_STOP 
wxICON_ASTERISK 
wxICON_MASK 
wxFORWARD 
wxBACKWARD 
wxRESET 
wxHELP 
wxMORE 
wxSETUP 


Constructor & Destructor Documentation

this ( IntPtr  wxobj  ) 

Reimplemented from Window.

Reimplemented in SingleChoiceDialog, MultiChoiceDialog, ColourDialog, DirDialog, FindReplaceDialog, FontDialog, NumberEntryDialog, ProgressDialog, TextEntryDialog, and Wizard.

this (  ) 

Reimplemented in ColourDialog, FindReplaceDialog, and FontDialog.

public this ( Window  parent,
int  id,
string  title,
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = wxDEFAULT_DIALOG_STYLE,
string  name = wxDialogNameStr 
)

Constructor.

Parameters:
parent Can be NULL, a frame or another dialog box.
id An identifier for the dialog. A value of -1 is taken to mean a default.
title The title of the dialog.
pos The dialog position. A value of (-1, -1) indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform.
size The dialog size. A value of (-1, -1) indicates a default size, chosen by either the windowing system or wxWidgets, depending on platform.
style The window style. See wxDialog.
name Used to associate a name with the window, allowing the application user to set Motif resource values for individual dialog boxes.
See also:
Create

this ( Window  parent,
string  title,
Point  pos = wxDefaultPosition,
Size  size = wxDefaultSize,
int  style = wxDEFAULT_DIALOG_STYLE,
string  name = wxDialogNameStr 
)


Member Function Documentation

bool Create ( Window  window,
int  id,
string  title,
inout Point  pos,
inout Size  size,
int  style,
string  name 
)

int ReturnCode (  ) 

void ReturnCode ( int  value  ) 

override string Title (  ) 

Reimplemented from Window.

override void Title ( string  value  ) 

Reimplemented from Window.

void EndModal ( int  retCode  ) 

void SetIcon ( Icon  icon  ) 

virtual int ShowModal (  ) 

Reimplemented in ColourDialog, DirDialog, FontDialog, MessageDialog, NumberEntryDialog, and TextEntryDialog.

deprecated void Modal ( bool  value  ) 

bool Modal (  ) 


Member Data Documentation

const string wxDialogNameStr = "dialog"


The documentation for this class was generated from the following files:
Generated on Sun Feb 1 21:30:23 2009 for wxD by  doxygen 1.5.4