Class: Wx::GRID::GridCellChoiceEditor

Inherits:
GridCellEditor show all
Defined in:
lib/wx/doc/gen/grid/grid_cell_choice_editor.rb

Overview

Grid cell editor for string data providing the user a choice from a list of strings.

Category: Grid Related Classes

Direct Known Subclasses

GridCellEnumEditor

Instance Method Summary collapse

Methods inherited from GridCellEditor

#apply_edit, #begin_edit, #clone, #create, #destroy, #do_activate, #end_edit, #get_control, #get_value, #get_window, #handle_return, #is_accepted_key, #is_created, #paint_background, #reset, #set_control, #set_size, #set_window, #show, #starting_click, #starting_key, #try_activate

Constructor Details

#initialize(choices, allowOthers = false) ⇒ Wx::GRID::GridCellChoiceEditor

Choice cell renderer ctor.

Parameters:

  • choices (Array<String>)

    An array of strings from which the user can choose.

  • allowOthers (Boolean) (defaults to: false)

    If allowOthers is true, the user can type a string not in choices array.



31
# File 'lib/wx/doc/gen/grid/grid_cell_choice_editor.rb', line 31

def initialize(choices, allowOthers=false) end

Instance Method Details

#set_parameters(params) ⇒ void Also known as: parameters=

This method returns an undefined value.

Parameters string format is “item1[,item2]”.

This method can be called before the editor is used for the first time, or later, in which case it replaces the previously specified strings with the new ones.

Parameters:

  • params (String)


38
# File 'lib/wx/doc/gen/grid/grid_cell_choice_editor.rb', line 38

def set_parameters(params) end