wxGridCellChoiceEditor(3)
π wxGridCellChoiceEditor(3) π
okay bestie, welcome to the Erlang module definition for wxGridCellChoiceEditor β yes it's a manual page, yes it's giving documentation core, but likeβ¦ stay with me, it's actually useful π«Ά
β¨ NAME β¨
wxGridCellChoiceEditor β the grid cell editor for string data that hands the user a lil dropdown moment: a choice from a list of strings π
πΈ DESCRIPTION πΈ
So the way this works, the docs just say see these other icons first β go peek at them, they're the family:
wxGridCellEditorwxGridCellBoolEditorwxGridCellFloatEditorwxGridCellNumberEditorwxGridCellTextEditor
And this class is derived, and can use functions, from:
wxGridCellEditor
wxWidgets docs: wxGridCellChoiceEditor (go read those too, iykyk π)
π¦ DATA TYPES π¦
wxGridCellChoiceEditor()::wx:wx_object().
like. it's a wx object. that's the whole vibe. β
π FUNCTIONS π
destroy
destroy(This :: wxGridCellChoiceEditor()) -> ok.
Destroys the object π (not in a bad way β it's just, like, cleanup. she's done. she's leaving. bye bestie π)
new
new(Choices, [Option]) -> wxGridCellChoiceEditor()
when
Choices :: [unicode:chardata()],
Option :: {allowOthers, boolean()}.
Choice cell renderer ctor β¨ (ctor = constructor, for the uninitiated β it makes the thing π)
The Option list can carry a tuple, and that tuple's key is allowOthers with a boolean() value π
setParameters
setParameters(This, Params) -> ok
when
This :: wxGridCellChoiceEditor(),
Params :: unicode:chardata().
Parameters string format is "item1[,item2[...,itemN]]" β so like, comma-separated items, brackets meaning the rest are optional-ish in the notation sense. Copy it exactly, don't freestyle it, fr fr π
And here's the key thing:
This method can be called before the editor is used for the first time, or later β in which case it replaces the previously specified strings with the new ones. π₯
So you can set it up early, or swap the whole menu later. Either way, out with the old, in with the new. Periodt. π
π§ a lil sign-off π§
That's the whole page bestie β brought to you by Ericsson AB, wx 2.6, and this very wxGridCellChoiceEditor(3) moment. no cap, you ate this documentation. go forth and make good choices (literally, it's a choice editor) πβ¨π¦πΈπ«Ά
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms