1 \section{\class{wxStaticBox
}}\label{wxstaticbox
}
3 A static box is a rectangle drawn around other panel items to denote
4 a logical grouping of items.
6 Please note that a static box should
{\bf not
} be used as the parent for the
7 controls it contains, instead they should be siblings of each other. Although
8 using a static box as a parent might work in some versions of wxWidgets, it
9 results in a crash under, for example, wxGTK.
11 Also, please note that because of this, the order in which you create new
12 controls is important. Create your wxStaticBox control
{\bf before
} any
13 siblings that are to appear inside the wxStaticBox in order to preserve the
14 correct Z-Order of controls.
16 \wxheading{Derived from
}
18 \helpref{wxControl
}{wxcontrol
}\\
19 \helpref{wxWindow
}{wxwindow
}\\
20 \helpref{wxEvtHandler
}{wxevthandler
}\\
21 \helpref{wxObject
}{wxobject
}
23 \wxheading{Include files
}
27 \wxheading{Window styles
}
29 There are no special styles for this control.
31 See also
\helpref{window styles overview
}{windowstyles
}.
35 \helpref{wxStaticText
}{wxstatictext
}
37 \latexignore{\rtfignore{\wxheading{Members
}}}
39 \membersection{wxStaticBox::wxStaticBox
}\label{wxstaticboxconstr
}
41 \func{}{wxStaticBox
}{\void}
45 \func{}{wxStaticBox
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{label
},
\rtfsp
46 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
47 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBox"
}}
49 Constructor, creating and showing a static box.
51 \wxheading{Parameters
}
53 \docparam{parent
}{Parent window. Must not be NULL.
}
55 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
57 \docparam{label
}{Text to be displayed in the static box, the empty string for no label.
}
59 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
61 \docparam{size
}{Checkbox size. If the size (-
1, -
1) is specified then a default size is chosen.
}
63 \docparam{style
}{Window style. See
\helpref{wxStaticBox
}{wxstaticbox
}.
}
65 \docparam{name
}{Window name.
}
69 \helpref{wxStaticBox::Create
}{wxstaticboxcreate
}
71 \membersection{wxStaticBox::
\destruct{wxStaticBox
}}
73 \func{void
}{\destruct{wxStaticBox
}}{\void}
75 Destructor, destroying the group box.
77 \membersection{wxStaticBox::Create
}\label{wxstaticboxcreate
}
79 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{label
},
\rtfsp
80 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
81 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBox"
}}
83 Creates the static box for two-step construction. See
\helpref{wxStaticBox::wxStaticBox
}{wxstaticboxconstr
}\rtfsp