Class | Fox::FXChoiceBox |
In: |
rdoc-sources/FXChoiceBox.rb
|
Parent: | FXDialogBox |
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,
Show a modal choice dialog. Prompt the user using a dialog with given caption, icon, message text, and choices from array of strings. Returns -1 if the dialog box is cancelled, otherwise returns the index of the selected choice
owner: | Owner for this dialog box [FXWindow or FXApp] |
opts: | Dialog box options [Integer] |
caption: | Caption for this dialog box [String] |
text: | Message text for this dialog box [String] |
icon: | Icon for this dialog box [FXIcon] |
choices: | Array of strings containing choices [Array] |
Construct choice box with given caption, icon, message text, and with choices from array of strings. If owner is another FXWindow, the dialog box is created as a child of that window. If owner is an FXApp instance, it‘s created as a free-floating dialog box.
owner: | Owner for this dialog box [FXWindow or FXApp] |
caption: | Caption for this dialog box [String] |
text: | Message text for this dialog box [String] |
icon: | Icon for this dialog box [FXIcon] |
choices: | Array of strings containing choices [Array] |
opts: | Dialog box options [Integer] |
x: | x-coordinate |
y: | y-coordinate |
width: | width |
height: | height |