contents up previous next

wxstaticbox

a static box is a rectangle drawn around other panel items to denote a logical grouping of items.

please note that a static box should not be used as the parent for the controls it contains, instead they should be siblings of each other. although using a static box as a parent might work in some versions of wxwidgets, it results in a crash under, for example, wxgtk.

also, please note that because of this, the order in which you create new controls is important. create your wxstaticbox control before any siblings that are to appear inside the wxstaticbox in order to preserve the correct z-order of controls.

derived from

wxcontrol
wxwindow
wxevthandler
wxobject

include files

<wx/statbox.h>

window styles

there are no special styles for this control.

see also window styles overview.

see also

wxstatictext

members

wxstaticbox::wxstaticbox
wxstaticbox::~wxstaticbox
wxstaticbox::create


wxstaticbox::wxstaticbox

wxstaticbox()

default constructor.

wxstaticbox(wxwindow* parent, wxwindowid id, const wxstring& label, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0, const wxstring& name = "staticbox")

constructor, creating and showing a static box.

parameters

parent

id

label

pos

size

style

name

see also

wxstaticbox::create


wxstaticbox::~wxstaticbox

void ~wxstaticbox()

destructor, destroying the group box.


wxstaticbox::create

bool create(wxwindow* parent, wxwindowid id, const wxstring& label, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = 0, const wxstring& name = "staticbox")

creates the static box for two-step construction. see wxstaticbox::wxstaticbox for further details.