wxstaticboxa 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 include files <wx/statbox.h> window styles there are no special styles for this control. see also window styles overview. see also members
wxstaticbox::wxstaticbox
wxstaticbox::wxstaticboxwxstaticbox() 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::~wxstaticboxvoid ~wxstaticbox() destructor, destroying the group box.
wxstaticbox::createbool 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.
|