]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/gaugemsw.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGauge class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "gaugemsw.h"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const wxChar
*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGaugeMSW
: public wxControl
26 DECLARE_DYNAMIC_CLASS(wxGaugeMSW
)
29 wxGaugeMSW(void) { m_rangeMax
= 0; m_gaugePos
= 0; }
31 wxGaugeMSW(wxWindow
*parent
, wxWindowID id
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 long style
= wxGA_HORIZONTAL
,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxGaugeNameStr
)
39 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID id
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 long style
= wxGA_HORIZONTAL
,
47 const wxValidator
& validator
= wxDefaultValidator
,
48 const wxString
& name
= wxGaugeNameStr
);
50 void SetShadowWidth(int w
);
51 void SetBezelFace(int w
);
53 void SetValue(int pos
);
55 int GetShadowWidth(void) const ;
56 int GetBezelFace(void) const ;
57 int GetRange(void) const ;
58 int GetValue(void) const ;
60 bool SetForegroundColour(const wxColour
& col
);
61 bool SetBackgroundColour(const wxColour
& col
);
63 // overriden base class virtuals
64 virtual bool AcceptsFocus() const { return FALSE
; }
66 // Backward compatibility
67 #if WXWIN_COMPATIBILITY
68 void SetButtonColour(const wxColour
& col
) { SetForegroundColour(col
); }
71 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;