added wxStaticBoxSizer ctor creating a new static box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
\section{\class{wxStaticBoxSizer}}\label{wxstaticboxsizer}
|
\section{\class{wxStaticBoxSizer}}\label{wxstaticboxsizer}
|
||||||
|
|
||||||
wxStaticBoxSizer is a sizer derived from wxBoxSizer but adds a static
|
wxStaticBoxSizer is a sizer derived from wxBoxSizer but adds a static
|
||||||
box around the sizer. Note that this static box has to be created
|
box around the sizer. This static box has to be created independently or the
|
||||||
separately.
|
sizer may create it itself as a convenience.
|
||||||
|
|
||||||
\wxheading{Derived from}
|
\wxheading{Derived from}
|
||||||
|
|
||||||
@@ -20,12 +20,19 @@ separately.
|
|||||||
|
|
||||||
\latexignore{\rtfignore{\wxheading{Members}}}
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxStaticBoxSizer::wxStaticBoxSizer}\label{wxstaticboxsizerwxstaticboxsizer}
|
\membersection{wxStaticBoxSizer::wxStaticBoxSizer}\label{wxstaticboxsizerwxstaticboxsizer}
|
||||||
|
|
||||||
\func{}{wxStaticBoxSizer}{\param{wxStaticBox* }{box}, \param{int }{orient}}
|
\func{}{wxStaticBoxSizer}{\param{wxStaticBox* }{box}, \param{int }{orient}}
|
||||||
|
|
||||||
Constructor. It takes an associated static box and the orientation {\it orient}
|
\func{}{wxStaticBoxSizer}{\param{int }{orient}, \param{wxWindow }{*parent}, \parent{const wxString\& }{label = wxEmptyString}}
|
||||||
as parameters - orient can be either of wxVERTICAL or wxHORIZONTAL.
|
|
||||||
|
The first constructor uses an already existing static box. It takes the
|
||||||
|
associated static box and the orientation \arg{orient}, which can be either
|
||||||
|
\texttt{wxVERTICAL} or \texttt{wxHORIZONTAL} as parameters.
|
||||||
|
|
||||||
|
The second one creates a new static box with the given label and parent window.
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxStaticBoxSizer::GetStaticBox}\label{wxstaticboxsizergetstaticbox}
|
\membersection{wxStaticBoxSizer::GetStaticBox}\label{wxstaticboxsizergetstaticbox}
|
||||||
|
|
||||||
|
@@ -622,6 +622,7 @@ class WXDLLEXPORT wxStaticBoxSizer: public wxBoxSizer
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxStaticBoxSizer(wxStaticBox *box, int orient);
|
wxStaticBoxSizer(wxStaticBox *box, int orient);
|
||||||
|
wxStaticBoxSizer(int orient, wxWindow *win, const wxString& label = _T(""));
|
||||||
|
|
||||||
void RecalcSizes();
|
void RecalcSizes();
|
||||||
wxSize CalcMin();
|
wxSize CalcMin();
|
||||||
|
@@ -1570,6 +1570,12 @@ wxStaticBoxSizer::wxStaticBoxSizer( wxStaticBox *box, int orient )
|
|||||||
wxASSERT_MSG( box, wxT("wxStaticBoxSizer needs a static box") );
|
wxASSERT_MSG( box, wxT("wxStaticBoxSizer needs a static box") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxStaticBoxSizer::wxStaticBoxSizer(int orient, wxWindow *win, const wxString& s)
|
||||||
|
: wxBoxSizer(orient),
|
||||||
|
m_staticBox(new wxStaticBox(win, wxID_ANY, s))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
static void GetStaticBoxBorders( wxStaticBox *box,
|
static void GetStaticBoxBorders( wxStaticBox *box,
|
||||||
int *borderTop,
|
int *borderTop,
|
||||||
int *borderOther)
|
int *borderOther)
|
||||||
|
Reference in New Issue
Block a user