]>
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 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "gauge95.h"
21 #include "wx/control.h"
23 WXDLLEXPORT_DATA(extern const wxChar
*) wxGaugeNameStr
;
26 class WXDLLEXPORT wxGauge95
: public wxControl
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 // overriden base class virtuals
64 virtual bool AcceptsFocus() const { return FALSE
; }
66 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {} ;
73 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95
)