#include <wx/statline.h>

The line may be only vertical or horizontal. Moreover, not all ports (notably not wxGTK) support specifying the transversal direction of the line (e.g. height for a horizontal line) so for maximial portability you should specify it as wxDefaultCoord.
Styles:
Public Member Functions | |
| wxStaticLine () | |
| wxStaticLine (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLI_HORIZONTAL, const wxString &name="staticLine") | |
| bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name="staticLine") |
| bool | IsVertical () const |
Static Public Member Functions | |
| static int | GetDefaultSize () |
| wxStaticLine::wxStaticLine | ( | ) |
Default constructor
| wxStaticLine::wxStaticLine | ( | wxWindow * | parent, | |
| wxWindowID | id = wxID_ANY, |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = wxLI_HORIZONTAL, |
|||
| const wxString & | name = "staticLine" | |||
| ) |
Constructor, creating and showing a static line.
| parent | Parent window. Must not be NULL. | |
| id | Window identifier. The value wxID_ANY indicates a default value. | |
| pos | Window position. If wxDefaultPosition is specified then a default position is chosen. | |
| size | Size. Note that either the height or the width (depending on whether the line if horizontal or vertical) is ignored. | |
| style | Window style (either wxLI_HORIZONTAL or wxLI_VERTICAL). | |
| name | Window name. |
| bool wxStaticLine::Create | ( | wxWindow * | parent, | |
| wxWindowID | id = wxID_ANY, |
|||
| const wxPoint & | pos = wxDefaultPosition, |
|||
| const wxSize & | size = wxDefaultSize, |
|||
| long | style = 0, |
|||
| const wxString & | name = "staticLine" | |||
| ) |
Creates the static line for two-step construction. See wxStaticLine() for further details.
| static int wxStaticLine::GetDefaultSize | ( | ) | [static] |
This static function returns the size which will be given to the smaller dimension of the static line, i.e. its height for a horizontal line or its width for a vertical one.
| bool wxStaticLine::IsVertical | ( | ) | const |
Returns true if the line is vertical, false if horizontal.
|
[ top ] |