]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gauge95.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge95 class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "gauge95.h"
21 #include "wx/control.h"
23 WXDLLEXPORT_DATA(extern const wxChar
*) wxGaugeNameStr
;
26 class WXDLLEXPORT wxGauge95
: public wxControl
28 DECLARE_DYNAMIC_CLASS(wxGauge95
)
31 wxGauge95(void) { m_rangeMax
= 0; m_gaugePos
= 0; }
33 wxGauge95(wxWindow
*parent
, wxWindowID id
,
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
)
41 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
44 bool Create(wxWindow
*parent
, wxWindowID id
,
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
);
52 void SetShadowWidth(int w
);
53 void SetBezelFace(int w
);
55 void SetValue(int pos
);
57 int GetShadowWidth(void) const ;
58 int GetBezelFace(void) const ;
59 int GetRange(void) const ;
60 int GetValue(void) const ;
62 bool SetForegroundColour(const wxColour
& col
);
63 bool SetBackgroundColour(const wxColour
& col
);
65 // overriden base class virtuals
66 virtual bool AcceptsFocus() const { return FALSE
; }
68 // Backward compatibility
69 #if WXWIN_COMPATIBILITY
70 void SetButtonColour(const wxColour
& col
) { SetForegroundColour(col
); }
73 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;