wxStatusBar(3erl)
π NAME π
okay bestie, meet wxStatusBar β the Erlang Module Definition from the 3erl manual, and these are literally the functions for the wxStatusBar class. It's giving tiny bottom-of-the-frame icon energy π
β¨
β¨ DESCRIPTION β¨
A status bar is a narrow window that can be placed along the bottom of a frame to give small amounts of status information. It can contain one or more fields, and one or more of those fields can be variable length according to the size of the window. Slay.
wxStatusBar also maintains an independent stack of status texts for each field β see pushStatusText/3 and popStatusText/2.
Note that in wxStatusBar context, the terms pane and field are synonyms. iykyk.
π Styles π
This class supports the following styles:
the list is literally empty on the page, bestie β that's not me being shady, that's just what's here ππ
Remark: It is possible to create controls and other windows on the status bar. Position these windows from an OnSize() event handler.
Remark: Notice that only the first127characters of a string will be shown in status bar fields under Windows if a proper manifest indicating that the program uses version6of common controls library is not used. This is a limitation of the native control on these platforms.
See: wxStatusBarPane (not implemented in wx), wxFrame, Examples
This class is derived (and can use functions) from: wxWindow wxEvtHandler
wxWidgets docs: wxStatusBar
πΈ DATA TYPES πΈ
wxStatusBar() = wx:wx_object()
π EXPORTS π
new() -> wxStatusBar()β Default ctor.new(Parent) -> wxStatusBar()β Types:Parent = wxWindow:wxWindow(). That's the whole entry on this overload, no extra prose attached π«Άnew(Parent, Options :: [Option]) -> wxStatusBar()β constructor, creating the window. See:create/3.- Types:
Parent = wxWindow:wxWindow()Option = {winid, integer()} | {style, integer()}
destroy(This :: wxStatusBar()) -> okβ Destructor.create(This, Parent) -> boolean()β Types:This = wxStatusBar(),Parent = wxWindow:wxWindow(). No extra description on this overload β¨create(This, Parent, Options :: [Option]) -> boolean()β Creates the window, for two-step construction. See:new/2for details.- Types:
This = wxStatusBar()Parent = wxWindow:wxWindow()Option = {winid, integer()} | {style, integer()}
getFieldRect(This, I) -> Resultβ Returns the size and position of a field's internal bounding rectangle.- Types:
Result = {Res :: boolean(), Rect :: {X :: integer(), Y :: integer(), W :: integer(), H :: integer()}},This = wxStatusBar(),I = integer() - Return:
trueif the field index is valid,falseotherwise. - See:
{X,Y,W,H}
- Types:
getFieldsCount(This) -> integer()β Returns the number of fields in the status bar.- Types:
This = wxStatusBar()
- Types:
getStatusText(This) -> unicode:charlist()β Types:This = wxStatusBar(). No extra description on this overload, just the type vibe πΈgetStatusText(This, Options :: [Option]) -> unicode:charlist()β Returns the string associated with a status bar field.- Types:
This = wxStatusBar(),Option = {number, integer()} - Return: The status field string if the field is valid, otherwise the empty string.
- See:
setStatusText/3
- Types:
popStatusText(This) -> okβ Types:This = wxStatusBar(). No extra description on this overload πpopStatusText(This, Options :: [Option]) -> okβ Restores the text to the value it had before the last call topushStatusText/3.- Types:
This = wxStatusBar(),Option = {number, integer()} - Notice that if
setStatusText/3had been called in the meanwhile,popStatusText/2will not change the text, i.e. it does not override explicit changes to status text but only restores the saved text if it hadn't been changed since. - See:
pushStatusText/3
- Types:
pushStatusText(This, String) -> okβ Types:This = wxStatusBar(),String = unicode:chardata(). No extra description on this overload πpushStatusText(This, String, Options :: [Option]) -> okβ Saves the current field text in a per-field stack, and sets the field text to the string passed as argument.- Types:
This = wxStatusBar(),String = unicode:chardata(),Option = {number, integer()} - See:
popStatusText/2
- Types:
setFieldsCount(This, Number) -> okβ Types:This = wxStatusBar(),Number = integer(). No extra description on this overload β¨setFieldsCount(This, Number, Options :: [Option]) -> okβ Sets the number of fields, and optionally the field widths.- Types:
This = wxStatusBar(),Number = integer(),Option = {widths, [integer()]}
- Types:
setMinHeight(This, Height) -> okβ Sets the minimal possible height for the status bar.- Types:
This = wxStatusBar(),Height = integer() - The real height may be bigger than the height specified here depending on the size of the font used by the status bar.
- Types:
setStatusText(This, Text) -> okβ Types:This = wxStatusBar(),Text = unicode:chardata(). No extra description on this overload πsetStatusText(This, Text, Options :: [Option]) -> okβ Sets the status text for the i-th field.- Types:
This = wxStatusBar(),Text = unicode:chardata(),Option = {number, integer()} - The given text will replace the current text. The display of the status bar is updated immediately, so there is no need to call
wxWindow:update/1after calling this function. - Note that if
pushStatusText/3had been called before, the new text will also replace the last saved value, to make sure that the next call topopStatusText/2doesn't restore the old value that was overwritten by the call to this function. - See:
getStatusText/2,wxFrame:setStatusText/3
- Types:
setStatusWidths(This, Widths_field) -> okβ Sets the widths of the fields in the status line.- Types:
This = wxStatusBar(),Widths_field = [integer()] - There are two types of fields: fixed widths and variable width fields. For the fixed width fields you should specify their (constant) width in pixels. For the variable width fields, specify a negative number which indicates how the field should expand: the space left for all variable width fields is divided between them according to the absolute value of this number. A variable width field with width of
-2gets twice as much of it as a field with width-1and so on. - For example, to create one fixed width field of width
100in the right part of the status bar and two more fields which get66%and33%of the remaining space correspondingly, you should use an array containing-2,-1and100. - Remark: The widths of the variable fields are calculated from the total width of all fields, minus the sum of widths of the non-variable fields, divided by the number of variable fields.
- See:
setFieldsCount/3,wxFrame:setStatusWidths/2
- Types:
setStatusStyles(This, Styles) -> okβ Sets the styles of the fields in the status line which can make fields appear flat or raised instead of the standard sunken 3D border.- Types:
This = wxStatusBar(),Styles = [integer()]
- Types:
signed, sealed, and slayed by the wxWidgets team π β source/version wx 2.2.2.1, page tag wxStatusBar(3erl). periodt π«Άβ¨
π¦ 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