wxControl(3)
π wxControl β bestie edition β¨
okay so like. this manual page? it's wxControl, and she's the base class for a control β or as the girlies say, a "widget". we're folding the manual name in right here, yes we are. π
πΈ NAME πΈ
wxControl β this is the base class for a control, aka a "widget". no cap. π
π¦ DESCRIPTION π¦
so, a control is generally a small window that processes user input and/or displays one or more item of data. it's giving little guy with a job. main character energy but smol. β¨
this class is derived from β and can use functions from β these icons: π
wxWindowwxEvtHandler
also, wxWidgets docs: wxControl (go look, iykyk π«Ά)
β Events
event types emitted from this class, periodt:
command_text_copycommand_text_cutcommand_text_paste
π§ DATA TYPES π§
wxControl() :: wx:wx_object().
that's it. that's the type. iconic. π
β¨ FUNCTIONS β¨
π getLabel
getLabel(This) -> unicode:charlist() when This :: wxControl().
returns the control's label, exactly as it was passed to setLabel/2. π
heads up bestie π«Ά β the returned string may contain mnemonics (those"&"characters) if they were passed to thesetLabel/2function. if you don't want them, useGetLabelText()(not implemented in wx). she's not available, sorry. π
also also β the returned string is always the string which was passed to setLabel/2, but it may be different from the string passed to SetLabelText() (not implemented in wx), since that last one escapes mnemonic characters. sneaky but factual. π
πΈ setLabel
setLabel(This, Label) -> ok
when This :: wxControl(), Label :: unicode:chardata().
sets the control's label. slay. β¨
every single "&" character in the label is special β it means the character right after it is a mnemonic for this control, and you can use it to activate the control from the keyboard (typically with the Alt key in combination with it). π
to insert a literal ampersand character, you need to double it, i.e. use "&&". not me having to escape my own ampersands π
if this behaviour is undesirable, use SetLabelText() (not implemented in wx) instead. bye mnemonic city. π
anyway that's the whole page bestie, no skips, no summaries, we kept every crumb π β this was brought to you by Ericsson AB, running wx 2.6, so you already know who to thank. mwah ππ
π¦ 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