1 #ifndef _WX_STATLINE_H_BASE_
2 #define _WX_STATLINE_H_BASE_
4 // ----------------------------------------------------------------------------
6 // ----------------------------------------------------------------------------
8 // this defines wxUSE_STATLINE
13 // the base class declaration
14 #include "wx/control.h"
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // the default name for objects of class wxStaticLine
21 WXDLLEXPORT_DATA(extern const wxChar
*) wxStaticTextNameStr
;
23 // ----------------------------------------------------------------------------
24 // wxStaticLine - a line in a dialog
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxStaticLineBase
: public wxControl
31 wxStaticLineBase() { }
33 // is the line vertical?
34 bool IsVertical() const { return (GetWindowStyle() & wxLI_VERTICAL
) != 0; }
36 // get the default size for the "lesser" dimension of the static line
37 static int GetDefaultSize() { return 2; }
40 // set the right size for the right dimension
41 wxSize
AdjustSize(const wxSize
& size
)
43 wxSize
sizeReal(size
);
47 sizeReal
.x
= GetDefaultSize();
52 sizeReal
.y
= GetDefaultSize();
59 // ----------------------------------------------------------------------------
60 // now include the actual class declaration
61 // ----------------------------------------------------------------------------
63 #if defined(__WXMSW__)
64 #include "wx/msw/statline.h"
65 #elif defined(__WXGTK__)
66 #include "wx/gtk/statline.h"
67 #elif defined(__WXPM__)
68 #include "wx/os2/statline.h"
69 #else // use generic implementation for all other platforms
70 #include "wx/generic/statline.h"
73 #endif // wxUSE_STATLINE
76 // _WX_STATLINE_H_BASE_