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 extern WXDLLEXPORT_DATA(const wxChar
*) wxGaugeNameStr
;
24 class WXDLLEXPORT wxGauge95
: public wxGaugeBase
29 wxGauge95(wxWindow
*parent
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 long style
= wxGA_HORIZONTAL
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxGaugeNameStr
)
38 (void)Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
41 bool Create(wxWindow
*parent
,
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 // set gauge range/value
51 virtual void SetRange(int range
);
52 virtual void SetValue(int pos
);
54 // overriden base class virtuals
55 virtual bool SetForegroundColour(const wxColour
& col
);
56 virtual bool SetBackgroundColour(const wxColour
& col
);
59 virtual WXDWORD
MSWGetStyle(long style
, WXDWORD
*exstyle
) const;
60 virtual wxSize
DoGetBestSize() const;
63 DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95
)