]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gauge95.h
pass correct key code in TREE_KEY_DOWN event
[wxWidgets.git] / include / wx / msw / gauge95.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gauge95.h
3 // Purpose: wxGauge95 class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _GAUGE95_H_
13 #define _GAUGE95_H_
14
15 #ifdef __GNUG__
16 #pragma interface "gauge95.h"
17 #endif
18
19 #if wxUSE_SLIDER
20
21 #include "wx/control.h"
22
23 WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
24
25 // Group box
26 class WXDLLEXPORT wxGauge95 : public wxControl
27 {
28 DECLARE_DYNAMIC_CLASS(wxGauge95)
29
30 public:
31 wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
32
33 wxGauge95(wxWindow *parent, wxWindowID id,
34 int range,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = wxGA_HORIZONTAL,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxGaugeNameStr)
40 {
41 Create(parent, id, range, pos, size, style, validator, name);
42 }
43
44 bool Create(wxWindow *parent, wxWindowID id,
45 int range,
46 const wxPoint& pos = wxDefaultPosition,
47 const wxSize& size = wxDefaultSize,
48 long style = wxGA_HORIZONTAL,
49 const wxValidator& validator = wxDefaultValidator,
50 const wxString& name = wxGaugeNameStr);
51
52 void SetShadowWidth(int w);
53 void SetBezelFace(int w);
54 void SetRange(int r);
55 void SetValue(int pos);
56
57 int GetShadowWidth(void) const ;
58 int GetBezelFace(void) const ;
59 int GetRange(void) const ;
60 int GetValue(void) const ;
61
62 bool SetForegroundColour(const wxColour& col);
63 bool SetBackgroundColour(const wxColour& col);
64
65 // overriden base class virtuals
66 virtual bool AcceptsFocus() const { return FALSE; }
67
68 // Backward compatibility
69 #if WXWIN_COMPATIBILITY
70 void SetButtonColour(const wxColour& col) { SetForegroundColour(col); }
71 #endif
72
73 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
74
75 protected:
76 int m_rangeMax;
77 int m_gaugePos;
78 };
79
80 #endif // wxUSE_GAUGE
81
82 #endif
83 // _GAUGEMSW_H_