wxStaticBox(3)

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

πŸ’– 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:

  • wxStaticText
  • wxStaticBoxSizer

this class is derived, and can use functions, from:

  • wxControl
  • wxWindow
  • wxEvtHandler

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