wxRuby Documentation Home

Wx::MultiChoiceDialog

This class represents a dialog that shows a list of strings, and allows the user to select one or more.

Derived from

Dialog

Window

EvtHandler

Object

See also

MultiChoiceDialog overview, SingleChoiceDialog

Methods

MultiChoiceDialog.new

MultiChoiceDialog.new(Window parent,  String message, 
                      String caption, 
                      Integer n, 
                      String choices, 
                      Integer style = CHOICEDLG_STYLE, 
                      Point pos = DEFAULT_POSITION)
MultiChoiceDialog.new(Window parent,  String message, 
                      String caption, 
                      ArrayString choices, 
                      Integer style = CHOICEDLG_STYLE, 
                      Point pos = DEFAULT_POSITION)

Constructor taking an array of String choices.

Parameters

OK Show an OK button.
CANCEL Show a Cancel button.
CENTRE Centre the message. Not Windows.

The default value is equivalent to DEFAULT_DIALOG_STYLE * RESIZE_BORDER * OK * CANCEL * CENTRE.

Remarks

Use MultiChoiceDialog#show_modal to show the dialog.

MultiChoiceDialog#get_selections

ArrayInt get_selection()

Returns array with indexes of selected items.

MultiChoiceDialog#set_selections

set_selections(ArrayInt selections)

Sets selected items from the array of selected items’ indexes.

MultiChoiceDialog#show_modal

Integer show_modal()

Shows the dialog, returning either ID_OK or ID_CANCEL.

[This page automatically generated from the Textile source at Thu May 01 00:50:41 +0100 2008]