Contents Up Previous Next

wxGroupBox: wxItem

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

Currently it is implemented for Windows and Motif only.

wxGroupBox::wxGroupBox
wxGroupBox::~wxGroupBox
wxGroupBox::Create


wxGroupBox::wxGroupBox

void wxGroupBox(void)

Constructor, for deriving classes.

void wxGroupBox(wxPanel *parent, char *label,
int x = -1, int y = -1,
int width = -1, int height = -1,
long style = 0, char *name = "groupBox")

Constructor, creating and showing a group box.

If label is non-NULL, it will be used as the group box label.

The parameters x and y are used to specify an absolute position, or a position after the previous panel item if omitted or default.

The name parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual group boxes.


wxGroupBox::~wxGroupBox

void ~wxGroupBox(void)

Destructor, destroying the group box.


wxGroupBox::Create

Bool Create(wxPanel *parent, char *label,
int x = -1, int y = -1,
int width = -1, int height = -1,
long style = 0, char *name = "groupBox")

Creates the group box for two-step construction. Derived classes should call or replace this function. See wxGroupBox::wxGroupBox for further details.