wxRuby Documentation Home

# Wx::GridCellNumberEditor

The editor for numeric integer data.

## Derived from

GridCellTextEditor

GridCellEditor

## See also

GridCellEditor, GridCellFloatEditor, GridCellBoolEditor, GridCellTextEditor, GridCellChoiceEditor

## Methods

- GridCellNumberEditor.new
- GridCellNumberEditor#get_string
- GridCellNumberEditor#has_range
- GridCellNumberEditor#set_parameters

### GridCellNumberEditor.new

GridCellNumberEditor.new(%(arg-type)Integer% min = -1, Integer max = -1)

Allows to specify the range for acceptable data;
if min == max == -1, no range checking is done

### GridCellNumberEditor#get_string

String get_string()

String representation of the value.

### GridCellNumberEditor#has_range

Boolean has_range()

If the return value is true, the editor uses a SpinCtrl to get user input,
otherwise it uses a TextCtrl.

### GridCellNumberEditor#set_parameters

set_parameters(%(arg-type)String% params)

Parameters string format is “min,max”.

[This page automatically generated from the Textile source at 2023-06-09 00:45:33 +0000]