]>
git.saurik.com Git - wxWidgets.git/blob - interface/statline.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxStaticLine class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A static line is just a line which may be used in a dialog to separate the
14 groups of controls. The line may be only vertical or horizontal.
17 @style{wxLI_HORIZONTAL}:
18 Creates a horizontal line.
19 @style{wxLI_VERTICAL}:
20 Creates a vertical line.
29 class wxStaticLine
: public wxControl
34 Constructor, creating and showing a static line.
37 Parent window. Must not be @NULL.
40 Window identifier. The value wxID_ANY indicates a default value.
43 Window position. If wxDefaultPosition is specified then a default position
47 Size. Note that either the height or the width (depending on
48 whether the line if horizontal or vertical) is ignored.
51 Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL).
59 wxStaticLine(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
60 const wxPoint
& pos
= wxDefaultPosition
,
61 const wxSize
& size
= wxDefaultSize
,
62 long style
= wxLI_HORIZONTAL
,
63 const wxString
& name
= "staticLine");
67 Creates the static line for two-step construction. See wxStaticLine()
70 bool Create(wxWindow
* parent
, wxWindowID id
= wxID_ANY
,
71 const wxPoint
& pos
= wxDefaultPosition
,
72 const wxSize
& size
= wxDefaultSize
,
74 const wxString
& name
= "staticLine");
77 This static function returns the size which will be given to the smaller
78 dimension of the static line, i.e. its height for a horizontal line or its
79 width for a vertical one.
84 Returns @true if the line is vertical, @false if horizontal.