wxGridCellChoiceEditor(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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:

  • wxGridCellEditor
  • wxGridCellBoolEditor
  • wxGridCellFloatEditor
  • wxGridCellNumberEditor
  • wxGridCellTextEditor

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