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 wxWindows, it
9 results in a crash under, for example, wxGTK.
11 \wxheading{Derived from
}
13 \helpref{wxControl
}{wxcontrol
}\\
14 \helpref{wxWindow
}{wxwindow
}\\
15 \helpref{wxEvtHandler
}{wxevthandler
}\\
16 \helpref{wxObject
}{wxobject
}
18 \wxheading{Include files
}
22 \wxheading{Window styles
}
24 There are no special styles for this control.
26 See also
\helpref{window styles overview
}{windowstyles
}.
30 \helpref{wxStaticText
}{wxstatictext
}
32 \latexignore{\rtfignore{\wxheading{Members
}}}
34 \membersection{wxStaticBox::wxStaticBox
}\label{wxstaticboxconstr
}
36 \func{}{wxStaticBox
}{\void}
40 \func{}{wxStaticBox
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{label
},
\rtfsp
41 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
42 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBox"
}}
44 Constructor, creating and showing a static box.
46 \wxheading{Parameters
}
48 \docparam{parent
}{Parent window. Must not be NULL.
}
50 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
52 \docparam{label
}{Text to be displayed in the static box, the empty string for no label.
}
54 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
56 \docparam{size
}{Checkbox size. If the size (-
1, -
1) is specified then a default size is chosen.
}
58 \docparam{style
}{Window style. See
\helpref{wxStaticBox
}{wxstaticbox
}.
}
60 \docparam{name
}{Window name.
}
64 \helpref{wxStaticBox::Create
}{wxstaticboxcreate
}
66 \membersection{wxStaticBox::
\destruct{wxStaticBox
}}
68 \func{void
}{\destruct{wxStaticBox
}}{\void}
70 Destructor, destroying the group box.
72 \membersection{wxStaticBox::Create
}\label{wxstaticboxcreate
}
74 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{label
},
\rtfsp
75 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
76 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticBox"
}}
78 Creates the static box for two-step construction. See
\helpref{wxStaticBox::wxStaticBox
}{wxstaticboxconstr
}\rtfsp