Class: Wx::GRID::GridCellFloatEditor

Inherits:
GridCellTextEditor show all
Defined in:
lib/wx/doc/gen/grid/grid_cell_float_editor.rb

Overview

The editor for floating point numbers data.

Category: Grid Related Classes

Instance Method Summary collapse

Methods inherited from GridCellTextEditor

#set_validator

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(width = -1,, precision = -1,, format = Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) ⇒ Wx::GRID::GridCellFloatEditor

Float cell editor ctor.

Parameters:

  • width (Integer) (defaults to: -1,)

    Minimum number of characters to be shown.

  • precision (Integer) (defaults to: -1,)

    Number of digits after the decimal dot.

  • format (Integer) (defaults to: Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT)

    The format to use for displaying the number, a combination of Wx::GRID::GridCellFloatFormat enum elements. This parameter is only available since wxWidgets 2.9.3.



32
# File 'lib/wx/doc/gen/grid/grid_cell_float_editor.rb', line 32

def initialize(width=-1, precision=-1, format=Wx::GRID::GridCellFloatFormat::GRID_FLOAT_FORMAT_DEFAULT) end

Instance Method Details

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

This method returns an undefined value.

The parameters string format is “width[,precision]” where format should be chosen between f|e|g|E|G (f is used by default)

Parameters:

  • params (String)


37
# File 'lib/wx/doc/gen/grid/grid_cell_float_editor.rb', line 37

def set_parameters(params) end