1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/statline.h
3 // Purpose: a generic wxStaticLine class used for mac before adaptation
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 1998 Vadim Zeitlin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_STATLINE_H_
11 #define _WX_GENERIC_STATLINE_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxStaticLine
: public wxStaticLineBase
22 // constructors and pseudo-constructors
23 wxStaticLine() : m_statbox(NULL
) { }
25 wxStaticLine( wxWindow
*parent
,
26 wxWindowID id
= wxID_ANY
,
27 const wxPoint
&pos
= wxDefaultPosition
,
28 const wxSize
&size
= wxDefaultSize
,
29 long style
= wxLI_HORIZONTAL
,
30 const wxString
&name
= wxStaticLineNameStr
)
33 Create(parent
, id
, pos
, size
, style
, name
);
36 bool Create( wxWindow
*parent
,
37 wxWindowID id
= wxID_ANY
,
38 const wxPoint
&pos
= wxDefaultPosition
,
39 const wxSize
&size
= wxDefaultSize
,
40 long style
= wxLI_HORIZONTAL
,
41 const wxString
&name
= wxStaticLineNameStr
);
43 // it's necessary to override this wxWindow function because we
44 // will want to return the main widget for m_statbox
46 WXWidget
GetMainWidget() const;
49 // we implement the static line using a static box
50 wxStaticBox
*m_statbox
;
52 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
55 #endif // _WX_GENERIC_STATLINE_H_