wxGridCellEditor(3erl)
๐ธ NAME ๐ธ
okay bestie, welcome to the Erlang Module Definition for wxGridCellEditor โ literally โFunctions for wxGridCellEditor classโ ๐
. This is the wxGridCellEditor(3erl) page, and yes, weโre about to make grid cell editing sound iconic.
โจ DESCRIPTION โจ
This class is responsible for providing and manipulating the in-place edit controls for the grid. Instances of wxGridCellEditor (actually, instances of derived classes since it is an abstract class) can be associated with the cell attributes for individual cells, rows, columns, or even for the entire grid.
Normally wxGridCellEditor shows some UI control allowing the user to edit the cell, but starting with wxWidgets 3.1.4 itโs also possible to define "activatable" cell editors, that change the value of the cell directly when itโs activated (typically by pressing Space key or clicking on it), see TryActivate() (not implemented in wx) method. Note that when implementing an editor which is always activatable, i.e. never shows any in-place editor, it is more convenient to derive its class from wxGridCellActivatableEditor (not implemented in wx) than from wxGridCellEditor itself.
See: wxGridCellAutoWrapStringEditor (not implemented in wx), wxGridCellBoolEditor, wxGridCellChoiceEditor, wxGridCellEnumEditor (not implemented in wx), wxGridCellFloatEditor, wxGridCellNumberEditor, wxGridCellTextEditor, wxGridCellDateEditor (not implemented in wx)
wxWidgets docs: wxGridCellEditor
๐ฆ DATA TYPES ๐ฆ
wxGridCellEditor() = wx:wx_object()
๐ EXPORTS ๐
๐ create(This, Parent, Id, EvtHandler) -> ok
Types:
This = wxGridCellEditor()
Parent = wxWindow:wxWindow()
Id = integer()
EvtHandler = wxEvtHandler:wxEvtHandler()
Creates the actual edit control. Slay, itโs giving โmake the edit control existโ energy.
๐ isCreated(This) -> boolean()
Types:
This = wxGridCellEditor()
Returns true if the edit control has been created. The vibe check for โdoes this thing exist yet?โ โจ
๐ setSize(This, Rect) -> ok
Types:
This = wxGridCellEditor()
Rect =
{X :: integer(),
Y :: integer(),
W :: integer(),
H :: integer()}
Size and position the edit control. You are literally telling it where to sit and how big to be ๐ .
๐ show(This, Show) -> ok
Types:
This = wxGridCellEditor()
Show = boolean()
The two-argument show, bestie โ thatโs the whole signature and its types.
๐ show(This, Show, Options :: [Option]) -> ok
Types:
This = wxGridCellEditor()
Show = boolean()
Option = {attr, wxGridCellAttr:wxGridCellAttr()}
Show or hide the edit control, use the specified attributes to set colours/fonts for it.
๐ reset(This) -> ok
Types:
This = wxGridCellEditor()
Reset the value in the control back to its starting value. Itโs giving โundo the little edit momentโ energy.
๐ startingKey(This, Event) -> ok
Types:
This = wxGridCellEditor()
Event = wxKeyEvent:wxKeyEvent()
If the editor is enabled by pressing keys on the grid, this will be called to let the editor do something about that first key if desired.
๐ startingClick(This) -> ok
Types:
This = wxGridCellEditor()
If the editor is enabled by clicking on the cell, this method will be called.
๐ handleReturn(This, Event) -> ok
Types:
This = wxGridCellEditor()
Event = wxKeyEvent:wxKeyEvent()
Some types of controls on some platforms may need some help with the Return key. Respect the Return key, honestly.
okay bestie, thatโs the whole page ๐โจ. Cute sign-off from the wxWidgets team, version wx 2.2.2.1, page wxGridCellEditor(3erl). The footer isnโt serving a date, so no date to report โ and thatโs on periodt. ๐ซถ
๐ฆ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 ยท Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms