]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/statusbr.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / osx / statusbr.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/statusbr.h
3 // Purpose: native implementation of wxStatusBar.
4 // Optional: can use generic version instead.
5 // Author: Stefan Csomor
6 // Modified by:
7 // Created: 1998-01-01
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATBAR_H_
13 #define _WX_STATBAR_H_
14
15 class WXDLLIMPEXP_CORE wxStatusBarMac : public wxStatusBarGeneric
16 {
17 public:
18 wxStatusBarMac();
19 wxStatusBarMac(wxWindow *parent, wxWindowID id = wxID_ANY,
20 long style = wxSTB_DEFAULT_STYLE,
21 const wxString& name = wxStatusBarNameStr);
22
23 virtual ~wxStatusBarMac();
24
25 bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
26 long style = wxSTB_DEFAULT_STYLE,
27 const wxString& name = wxStatusBarNameStr);
28
29 // Implementation
30 virtual void MacHiliteChanged();
31 void OnPaint(wxPaintEvent& event);
32
33 protected:
34 virtual void DrawFieldText(wxDC& dc, const wxRect& rc, int i, int textHeight);
35 virtual void DrawField(wxDC& dc, int i, int textHeight);
36 virtual void DoUpdateStatusText(int number = 0);
37
38 DECLARE_DYNAMIC_CLASS(wxStatusBarMac)
39 DECLARE_EVENT_TABLE()
40 };
41
42 #endif // _WX_STATBAR_H_