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

 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)
 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)
 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)
 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)

Static Public Member Functions

FXint ask (FXWindow *owner, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices)
FXint ask (FXWindow *owner, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices)
FXint ask (FXApp *app, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXchar **choices)
FXint ask (FXApp *app, FXuint opts, const FXString &caption, const FXString &text, FXIcon *icon, const FXString &choices)

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,


Constructor & Destructor Documentation

FX::FXChoiceBox::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.

FX::FXChoiceBox::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.

FX::FXChoiceBox::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.

FX::FXChoiceBox::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.


Member Function Documentation

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.

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

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

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

Copyright © 1997-2005 Jeroen van der Zijp