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

FX::FXInputDialog Class Reference

An Input Dialog is a simple dialog which is used to obtain a text string, integer, or real number from the user. More...

#include <FXInputDialog.h>

Inheritance diagram for FX::FXInputDialog:

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

Public Member Functions

 FXInputDialog (FXWindow *owner, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXuint opts=INPUTDIALOG_STRING, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 FXInputDialog (FXApp *app, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXuint opts=INPUTDIALOG_STRING, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
FXString getText () const
void setText (const FXString &text)
void setNumColumns (FXint num)
FXint getNumColumns () const
void setLimits (FXdouble lo, FXdouble hi)
void getLimits (FXdouble &lo, FXdouble &hi)
virtual FXuint execute (FXuint placement=PLACEMENT_CURSOR)

Static Public Member Functions

FXbool getString (FXString &result, FXWindow *owner, const FXString &caption, const FXString &label, FXIcon *icon=NULL)
FXbool getString (FXString &result, FXApp *app, const FXString &caption, const FXString &label, FXIcon *icon=NULL)
FXbool getInteger (FXint &result, FXWindow *owner, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXint lo=1, FXint hi=0)
FXbool getInteger (FXint &result, FXApp *app, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXint lo=1, FXint hi=0)
FXbool getReal (FXdouble &result, FXWindow *owner, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXdouble lo=1.0, FXdouble hi=0.0)
FXbool getReal (FXdouble &result, FXApp *app, const FXString &caption, const FXString &label, FXIcon *icon=NULL, FXdouble lo=1.0, FXdouble hi=0.0)

Detailed Description

An Input Dialog is a simple dialog which is used to obtain a text string, integer, or real number from the user.

A password mode allows the key-in to remain hidden.

See also:


Constructor & Destructor Documentation

FX::FXInputDialog::FXInputDialog FXWindow owner,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXuint  opts = INPUTDIALOG_STRING,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct input dialog box with given caption, icon, and prompt text.

FX::FXInputDialog::FXInputDialog FXApp app,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXuint  opts = INPUTDIALOG_STRING,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct free floating input dialog box with given caption, icon, and prompt text.


Member Function Documentation

FXString FX::FXInputDialog::getText  )  const
 

Get input string.

void FX::FXInputDialog::setText const FXString text  ) 
 

Set input string.

void FX::FXInputDialog::setNumColumns FXint  num  ) 
 

Change number of visible columns of text.

FXint FX::FXInputDialog::getNumColumns  )  const
 

Return number of visible columns of text.

void FX::FXInputDialog::setLimits FXdouble  lo,
FXdouble  hi
[inline]
 

Change limits.

void FX::FXInputDialog::getLimits FXdouble &  lo,
FXdouble &  hi
[inline]
 

Return limits.

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

Run modal invocation of the dialog.

Reimplemented from FX::FXDialogBox.

FXbool FX::FXInputDialog::getString FXString result,
FXWindow owner,
const FXString caption,
const FXString label,
FXIcon icon = NULL
[static]
 

Prompt for a string, start with the initial value.

Return TRUE if the new value is accepted, and false otherwise.

FXbool FX::FXInputDialog::getString FXString result,
FXApp app,
const FXString caption,
const FXString label,
FXIcon icon = NULL
[static]
 

Prompt for a string, in free floating window.

FXbool FX::FXInputDialog::getInteger FXint &  result,
FXWindow owner,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXint  lo = 1,
FXint  hi = 0
[static]
 

Prompt for an integer number, start with the given initial value.

Return TRUE if the new value is accepted, and false otherwise. The input is constrained between lo and hi, unless lo>hi, in which case the input can be any number.

FXbool FX::FXInputDialog::getInteger FXint &  result,
FXApp app,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXint  lo = 1,
FXint  hi = 0
[static]
 

Prompt for a integer number, in free floating window.

FXbool FX::FXInputDialog::getReal FXdouble &  result,
FXWindow owner,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXdouble  lo = 1.0,
FXdouble  hi = 0.0
[static]
 

Prompt for an real number, start with the given initial value.

Return TRUE if the new value is accepted, and false otherwise. The input is constrained between lo and hi, unless lo>hi, in which case the input can be any number.

FXbool FX::FXInputDialog::getReal FXdouble &  result,
FXApp app,
const FXString caption,
const FXString label,
FXIcon icon = NULL,
FXdouble  lo = 1.0,
FXdouble  hi = 0.0
[static]
 

Prompt for a real number, in free floating window.

Copyright © 1997-2005 Jeroen van der Zijp