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

FX::FXChoiceBox Class Reference

The Choice Box provides a dialog panel to select one item out of a list of choices. More...

#include <FXChoiceBox.h>

Inheritance diagram for FX::FXChoiceBox:
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 = FXDialogBox::ID_LAST, ID_LAST }

Public Member Functions

long onCmdClicked (FXObject *, FXSelector, void *)
long onCmdCancel (FXObject *, FXSelector, void *)
 FXChoiceBox (FXWindow *owner, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct choice box with given caption, icon, message text, and with choices from array of strings.
 FXChoiceBox (FXWindow *owner, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct choice box with given caption, icon, message text, and with choices from newline separated strings.
 FXChoiceBox (FXApp *app, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct free floating choice box with given caption, icon, message text, and with choices from array of strings.
 FXChoiceBox (FXApp *app, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct free floating choice box with given caption, icon, message text, and with choices from newline separated strings.
virtual void save (FXStream &store) const
 Save choice box to a stream.
virtual void load (FXStream &store)
 Load choice box from a stream.
virtual ~FXChoiceBox ()
 Destroy choice box.

Static Public Member Functions

static FXint ask (FXWindow *owner, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices)
 Show a modal choice dialog.
static FXint ask (FXWindow *owner, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices)
 Show a modal choice dialog.
static FXint ask (FXApp *app, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices)
 Show modal choice message, in free floating window.
static FXint ask (FXApp *app, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices)
 Show modal choice message, in free floating window.

Protected Attributes

FXListlist

Detailed Description

The Choice Box provides a dialog panel to select one item out of a list of choices.

The choices are provided as a list of text strings. When the dialog closes, the index of the selected choice is returned, while a -1 is returned if the dialog was canceled,


Member Function Documentation

static FXint FX::FXChoiceBox::ask ( FXWindow owner,
FXuint  opts,
const FXString caption,
const FXString text,
FXIcon icon,
const FXchar **  choices 
) [static]

Show a modal choice dialog.

Prompt the user using a dialog with given caption, icon, message text, and with choices from newline array of strings. The return value is -1 if cancelled, or the given choice.

static FXint FX::FXChoiceBox::ask ( FXWindow owner,
FXuint  opts,
const FXString caption,
const FXString text,
FXIcon icon,
const FXString choices 
) [static]

Show a modal choice dialog.

Prompt the user using a dialog with given caption, icon, message text, and with choices from newline separated strings. The return value is -1 if cancelled, or the given choice

static FXint FX::FXChoiceBox::ask ( FXApp app,
FXuint  opts,
const FXString caption,
const FXString text,
FXIcon icon,
const FXchar **  choices 
) [static]

Show modal choice message, in free floating window.

Prompt the user using a dialog with given caption, icon, message text, and with choices from newline array of strings. The return value is -1 if cancelled, or the given choice

static FXint FX::FXChoiceBox::ask ( FXApp app,
FXuint  opts,
const FXString caption,
const FXString text,
FXIcon icon,
const FXString choices 
) [static]

Show modal choice message, in free floating window.

Prompt the user using a dialog with given caption, icon, message text, and with choices from newline separated strings. The return value is -1 if cancelled, or the given choice


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp