wxPickerBase(3erl)
π wxPickerBase(3erl) π
Okay bestie, this is from the Erlang Module Definition manual, and it's literally all about wxPickerBase β the base abstract class for pickers that have an auxiliary text control. Slay. Let's get into it π«Ά
πΈ NAME πΈ
wxPickerBase β Functions for wxPickerBase class β¨
β¨ DESCRIPTION β¨
Base abstract class for all pickers which support an auxiliary text control.
This class handles all positioning and sizing of the text control like an horizontal wxBoxSizer would do, with the text control on the left of the picker button. Iconic π
The proportion (see wxSizer documentation for more info about proportion values) of the picker control defaults to 1 when there isn't a text control associated (see wxPB_USE_TEXTCTRL style) and to 0 otherwise.
Lowkey important: the proportion value is1for no-text-control (whenwxPB_USE_TEXTCTRLis not given), and0otherwise. No cap. π₯
π Styles
This class supports the following styles:
(okay so the manual literally leaves this blank bestie β no styles listed, just vibes π but it says it supports styles so... those are the breaks)
See: wxColourPickerCtrl
This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler
wxWidgets docs: wxPickerBase
π¦ DATA TYPES π¦
wxPickerBase() = wx:wx_object()
π EXPORTS π
setInternalMargin(This, Margin) -> okβ types:This = wxPickerBase(),Margin = integer(). Sets the margin (in pixel) between the picker and the text control. π This function can be used only whenhasTextCtrl/1returnstrue.getInternalMargin(This) -> integer()β types:This = wxPickerBase(). Returns the margin (in pixel) between the picker and the text control. π This function can be used only whenhasTextCtrl/1returnstrue.setTextCtrlProportion(This, Prop) -> okβ types:This = wxPickerBase(),Prop = integer(). Sets the proportion value of the text control. Look at the detailed description ofwxPickerBasefor more info. β¨ This function can be used only whenhasTextCtrl/1returnstrue.setPickerCtrlProportion(This, Prop) -> okβ types:This = wxPickerBase(),Prop = integer(). Sets the proportion value of the picker. Look at the detailed description ofwxPickerBasefor more info. πgetTextCtrlProportion(This) -> integer()β types:This = wxPickerBase(). Returns the proportion value of the text control. π«Ά This function can be used only whenhasTextCtrl/1returnstrue.getPickerCtrlProportion(This) -> integer()β types:This = wxPickerBase(). Returns the proportion value of the picker. πhasTextCtrl(This) -> boolean()β types:This = wxPickerBase(). Returnstrueif this window has a valid text control (i.e. if thewxPB_USE_TEXTCTRLstyle was given when creating this control). πgetTextCtrl(This) -> wxTextCtrl:wxTextCtrl()β types:This = wxPickerBase(). Returns a pointer to the text control handled by this window orNULLif thewxPB_USE_TEXTCTRLstyle was not specified when this control was created.
Remark: the contents of the text control could be an invalid representation of the entity which can be chosen through the picker (e.g. when the user enters an invalid colour syntax because of a typo). Thus you should never parse the content of the textctrl to get the user's input; rather use the derived-class getter (e.g.wxColourPickerCtrl:getColour/1,wxFilePickerCtrl:getPath/1, etc.). Fr fr, don't do it π
isTextCtrlGrowable(This) -> boolean()β types:This = wxPickerBase(). Returnstrueif the text control is growable. π§ This function can be used only whenhasTextCtrl/1returnstrue.setPickerCtrlGrowable(This) -> okβ types:This = wxPickerBase().setPickerCtrlGrowable(This, Options :: [Option]) -> okβ types:This = wxPickerBase(),Option = {grow, boolean()}. Sets the picker control as growable whengrowistrue. πΈsetTextCtrlGrowable(This) -> okβ types:This = wxPickerBase().setTextCtrlGrowable(This, Options :: [Option]) -> okβ types:This = wxPickerBase(),Option = {grow, boolean()}. Sets the text control as growable whengrowistrue. π This function can be used only whenhasTextCtrl/1returnstrue.isPickerCtrlGrowable(This) -> boolean()β types:This = wxPickerBase(). Returnstrueif the picker control is growable. π₯
Big love to the wxWidgets team π β this is from wx 2.2.2.1, and the page is wxPickerBase(3erl). Byeeeee! β¨π¦
π¦ 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