wxStaticBox(3)
π wxStaticBox π
okay bestie, welcome to the wxStaticBox page β it's part of the Erlang module definitions, so you know it's the good stuff β¨
πΈ NAME πΈ
wxStaticBox β a static box is, literally, just a rectangle drawn around other windows, and its whole job is to denote a logical grouping of items. that's it. that's the vibe. a friendship-circle drawn in pixels π«Ά
β¨ DESCRIPTION β¨
okay so history lesson, but make it cute πβ¨ β in the previous versions, the windows showing up inside a static box had to be created as its siblings (as in, same parent as the static box itself, periodt). but since wxWidgets 2.9.1, you can also create them as children of wxStaticBox itself, and honestly? you're encouraged to do it like this if compatibility with the previous versions is not important. main character energy fr π
so the new recommended way to create a static box is:
while the compatible β and now deprecated β way is:
π no cap, that "compatible" one is deprecated. i'm just the messenger, bestie.
also note there's a specialized wxSizer class, wxStaticBoxSizer, which can be used as an easier way to pack items into a static box. slay π
See:
wxStaticTextwxStaticBoxSizer
this class is derived, and can use functions, from:
wxControlwxWindowwxEvtHandler
wxWidgets docs: wxStaticBox
π¦ DATA TYPES π¦
wxStaticBox() :: wx:wx_object().
π FUNCTIONS π
create(This, Parent, Id, Label, [Option]) -> boolean()
okay so the full signature, exact, no edits, here u go:
create(This, Parent, Id, Label, [Option]) -> boolean()
when
This :: wxStaticBox(),
Parent :: wxWindow:wxWindow(),
Id :: integer(),
Label :: unicode:chardata(),
Option ::
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
creates the static box for two-step construction π οΈβ¨
See new/4 for further details, bestie β it's all over there.
destroy(This :: wxStaticBox()) -> ok.
destroy(This :: wxStaticBox()) -> ok.
destroys the object π bye girl, you did amazing
new() -> wxStaticBox().
new() -> wxStaticBox().
default constructor π± nothing fancy, just a lil baby box waiting to be born.
new(Parent, Id, Label, [Option]) -> wxStaticBox()
new(Parent, Id, Label, [Option]) -> wxStaticBox()
when
Parent :: wxWindow:wxWindow(),
Id :: integer(),
Label :: unicode:chardata(),
Option ::
{pos, {X :: integer(), Y :: integer()}} |
{size, {W :: integer(), H :: integer()}} |
{style, integer()}.
constructor, creating and showing a static box π₯ two things at once, we love an overachiever.
See: create/5
π and that's the whole page! this absolute icon of a doc was brought to you by Ericsson AB, version wx 2.6, dated all the way back to the wxStaticBox(3) era. stan a classic ππβ¨
π¦ 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