]>
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"
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGauge95
: public wxControl
26 DECLARE_DYNAMIC_CLASS(wxGauge95
)
29 wxGauge95(void) { m_rangeMax
= 0; m_gaugePos
= 0; }
31 wxGauge95(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 // Backward compatibility
64 #if WXWIN_COMPATIBILITY
65 void SetButtonColour(const wxColour
& col
) { SetForegroundColour(col
); }
68 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
74 virtual void DoSetSize(int x
, int y
,
75 int width
, int height
,
76 int sizeFlags
= wxSIZE_AUTO
);