wxGridCellTextEditor(3)

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

wxGridCellTextEditor πŸ’–

okay bestie, welcome to the Erlang Module Definition for wxGridCellTextEditor β€” yes we're in the Erlang docs, not the C++ ones, iykyk ✨

🌸 NAME 🌸

wxGridCellTextEditor β€” it's the grid cell editor for string/text data. that's it, that's the job, and it does it gorgeously πŸ’…


✨ DESCRIPTION ✨

okay so this one is a whole little fam, and you're gonna wanna meet everybody. see:

  • wxGridCellEditor
  • wxGridCellBoolEditor
  • wxGridCellChoiceEditor
  • wxGridCellFloatEditor
  • wxGridCellNumberEditor

and like, the nepo baby situation: this class is derived, and can use functions, from:

  • wxGridCellEditor

also the wxWidgets docs live over at wxWidgets docs: wxWidgets docs: wxGridCellTextEditor β€” go peek if you want the C++ flavor πŸ¦‹


πŸŽ€ DATA TYPES πŸŽ€

  • wxGridCellTextEditor() :: wx:wx_object().

that's the type, and honestly? iconic. a whole object. periodt. πŸ‘‘


🌈 FUNCTIONS 🌈

destroy(This :: wxGridCellTextEditor()) -> ok.

Destroys the object πŸ’€ yes babe, it's a destroyer, it does exactly what it says on the tin. no notes.

new([Option]) -> wxGridCellTextEditor()

    when Option :: {maxChars, integer()}.

Text cell editor constructor. aka the glow-up moment where your text editor is born 🫢 and you can hand it {maxChars, integer()} if you wanna cap the vibes.

setParameters(This, Params) -> ok

    when

        This :: wxGridCellTextEditor(),

        Params :: unicode:chardata().

okay so the parameters string format is "n" where n is a number representing the maximum width. so you literally just pass in a number, as chardata, and it becomes the max width. that's the whole format. just "n". don't overthink it bestie ✨


heads up babe, keep your Params as unicode:chardata() β€” it's a string with a number in it, not an integer. the way that detail matters 😭

and that's the whole page!! you ate this, fr fr πŸ“

written with love, shipped by Ericsson AB, and this whole vibe check is running on wx 2.6, dated wxGridCellTextEditor(3) β€” catch you in the next page, mwah πŸ’–πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from