Class: Wx::GRID::GridCellActivatableEditor

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

Overview

Base class for activatable editors.

Inheriting from this class makes it simpler to implement editors that support only activation, but not in-place editing, as they only need to implement #try_activate, #do_activate and Wx::GRID::GridCellEditor#clone methods, but not all the other pure virtual methods of GridCellEditor.

Requires:

  • USE_GRID

Instance Method Summary collapse

Methods inherited from GridCellEditor

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

Constructor Details

This class inherits a constructor from Wx::GRID::GridCellEditor

Instance Method Details

#do_activate(row, col, grid) ⇒ void

This method returns an undefined value.

Same method as in Wx::GRID::GridCellEditor, but pure virtual.

Parameters:



33
# File 'lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb', line 33

def do_activate(row, col, grid) end

#try_activate(row, col, grid, actSource) ⇒ Wx::GridActivationResult

Same method as in Wx::GRID::GridCellEditor, but pure virtual.

Note that the implementation of this method must never return Wx::GridActivationResult#do_edit for the editors inheriting from this class, as it doesn’t support normal editing.

Parameters:

  • row (Integer)
  • col (Integer)
  • grid (Wx::GRID::Grid)
  • actSource (Wx::GridActivationSource)

Returns:

  • (Wx::GridActivationResult)


26
# File 'lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb', line 26

def try_activate(row, col, grid, actSource) end