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
}
19 \helpref{wxCore
}{librarieslist
}
21 \wxheading{Window styles
}
24 \begin{twocollist
}\itemsep=
0pt
25 \twocolitem{\windowstyle{wxLI
\_HORIZONTAL}}{Creates a horizontal line.
}
26 \twocolitem{\windowstyle{wxLI
\_VERTICAL}}{Creates a vertical line.
}
31 \helpref{wxStaticBox
}{wxstaticbox
}
33 \latexignore{\rtfignore{\wxheading{Members
}}}
35 \membersection{wxStaticLine::wxStaticLine
}\label{wxstaticlinector
}
37 \func{}{wxStaticLine
}{\void}
41 \func{}{wxStaticLine
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id = wxID
\_ANY},
\rtfsp
42 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
43 \param{long
}{ style = wxLI
\_HORIZONTAL},
\param{const wxString\&
}{name = ``staticLine"
}}
45 Constructor, creating and showing a static line.
47 \wxheading{Parameters
}
49 \docparam{parent
}{Parent window. Must not be NULL.
}
51 \docparam{id
}{Window identifier. A value of -
1 indicates a default value.
}
53 \docparam{pos
}{Window position. If the position (-
1, -
1) is specified then a default position is chosen.
}
55 \docparam{size
}{Size. Note that either the height or the width (depending on
56 whether the line if horizontal or vertical) is ignored.
}
58 \docparam{style
}{Window style (either wxLI
\_HORIZONTAL or wxLI
\_VERTICAL).
}
60 \docparam{name
}{Window name.
}
64 \helpref{wxStaticLine::Create
}{wxstaticlinecreate
}
66 \membersection{wxStaticLine::Create
}\label{wxstaticlinecreate
}
68 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id = wxID
\_ANY},
\rtfsp
69 \param{const wxPoint\&
}{ pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\rtfsp
70 \param{long
}{ style =
0},
\param{const wxString\&
}{name = ``staticLine"
}}
72 Creates the static line for two-step construction. See
\helpref{wxStaticLine::wxStaticLine
}{wxstaticlinector
}\rtfsp
75 \membersection{wxStaticLine::IsVertical
}\label{wxstaticlineisvertical
}
77 \constfunc{bool
}{IsVertical
}{\void}
79 Returns true if the line is vertical, false if horizontal.
81 \membersection{wxStaticLine::GetDefaultSize
}\label{wxstaticlinegetdefaultsize
}
83 \func{int
}{GetDefaultSize
}{\void}
85 This static function returns the size which will be given to the smaller
86 dimension of the static line, i.e. its height for a horizontal line or its
87 width for a vertical one.