1 /////////////////////////////////////////////////////////////////////////////
2 // Name: mac/statline.h
3 // Purpose: a generic wxStaticLine class used for mac before adaptation
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_STATLINE_H_
12 #define _WX_GENERIC_STATLINE_H_
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxStaticLine
: public wxStaticLineBase
23 // constructors and pseudo-constructors
24 wxStaticLine() : m_statbox(NULL
) { }
26 wxStaticLine( wxWindow
*parent
,
27 wxWindowID id
= wxID_ANY
,
28 const wxPoint
&pos
= wxDefaultPosition
,
29 const wxSize
&size
= wxDefaultSize
,
30 long style
= wxLI_HORIZONTAL
,
31 const wxString
&name
= wxStaticLineNameStr
)
34 Create(parent
, id
, pos
, size
, style
, name
);
37 bool Create( wxWindow
*parent
,
38 wxWindowID id
= wxID_ANY
,
39 const wxPoint
&pos
= wxDefaultPosition
,
40 const wxSize
&size
= wxDefaultSize
,
41 long style
= wxLI_HORIZONTAL
,
42 const wxString
&name
= wxStaticLineNameStr
);
44 // it's necessary to override this wxWindow function because we
45 // will want to return the main widget for m_statbox
47 WXWidget
GetMainWidget() const;
50 // we implement the static line using a static box
51 wxStaticBox
*m_statbox
;
53 DECLARE_DYNAMIC_CLASS(wxStaticLine
)
56 #endif // _WX_GENERIC_STATLINE_H_