Contents Up Previous Next

wxGridCellBoolEditor

The editor for boolean data.

継承元

wxGridCellEditor

参照

wxGridCellEditor, wxGridCellFloatEditor, wxGridCellNumberEditor, wxGridCellTextEditor, wxGridCellChoiceEditor

インクルードファイル

<wx/grid.h>

Members

wxGridCellBoolEditor::wxGridCellBoolEditor
wxGridCellBoolEditor::IsTrueValue
wxGridCellBoolEditor::UseStringValues


wxGridCellBoolEditor::wxGridCellBoolEditor

wxGridCellBoolEditor()

Default constructor.


wxGridCellBoolEditor::IsTrueValue

static bool IsTrueValue(const wxString& value)

Returns true if the given value is equal to the string representation of the truth value we currently use (see UseStringValues).


wxGridCellBoolEditor::UseStringValues

static void UseStringValues(const wxString& valueTrue = _T("1"), const wxString& valueFalse = _T(""))

This method allows to customize the values returned by GetValue() method for the cell using this editor. By default, the default values of the arguments are used, i.e. "1" is returned if the cell is checked and an empty string otherwise, using this method allows to change this.