1 \section{\class{wxStaticLine
}}\label{wxstaticline
}
3 A static line is just a line which may be used in a dialog to separate the
4 groups of controls. The line may be only vertical or horizontal.
6 \wxheading{Derived from
}
8 \helpref{wxControl
}{wxcontrol
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \wxheading{Window styles
}
20 \begin{twocollist
}\itemsep=
0pt
21 \twocolitem{\windowstyle{wxLI
\_HORIZONTAL}}{Creates a horizontal line.
}
22 \twocolitem{\windowstyle{wxLI
\_VERTICAL}}{Creates a vertical line.
}
27 \helpref{wxStaticBox
}{wxstaticbox
}
29 \latexignore{\rtfignore{\wxheading{Members
}}}
31 \membersection{wxStaticLine::wxStaticLine
}\label{wxstaticlinector
}
33 \func{}{wxStaticLine
}{\void}
37 \func{}{wxStaticLine
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\rtfsp
38 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
39 \param{long
}{ style = wxLI
\_HORIZONTAL},
\param{const wxString\&
}{name = ``staticLine"
}}
41 Constructor, creating and showing a static line.
43 \wxheading{Parameters
}
45 \docparam{parent
}{Parent window. Must not be NULL.
}
47 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
49 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
51 \docparam{size
}{Size. Note that either the height or the width (depending on
52 whether the line if horizontal or vertical) is ignored.
}
54 \docparam{style
}{Window style (either wxLI
\_HORIZONTAL or wxLI
\_VERTICAL).
}
56 \docparam{name
}{Window name.
}
60 \helpref{wxStaticLine::Create
}{wxstaticlinecreate
}
62 \membersection{wxStaticLine::Create
}\label{wxstaticlinecreate
}
64 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxString\&
}{label
},
\rtfsp
65 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
66 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticLine"
}}
68 Creates the static line for two-step construction. See
\helpref{wxStaticLine::wxStaticLine
}{wxstaticlinector
}\rtfsp
71 \membersection{wxStaticLine::IsVertical
}\label{wxstaticlineisvertical
}
73 \constfunc{bool
}{IsVertical
}{\void}
75 Returns TRUE if the line is vertical, FALSE if horizontal.
77 \membersection{wxStaticLine::GetDefaultSize
}\label{wxstaticlinegetdefaultsize
}
79 \func{int
}{GetDefaultSize
}{\void}
81 This static function returns the size which will be given to the smaller
82 dimension of the static line, i.e. its height for a horizontal line or its
83 width for a vertical one.