]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/gauge95.h
layout improvement on mac
[wxWidgets.git] / include / wx / msw / gauge95.h
CommitLineData
780d37ac
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge95.h
3// Purpose: wxGauge95 class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
1e6feb95 9// Licence: wxWindows licence
780d37ac
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _GAUGE95_H_
13#define _GAUGE95_H_
14
15#ifdef __GNUG__
16#pragma interface "gauge95.h"
17#endif
18
1e6feb95
VZ
19#if wxUSE_SLIDER
20
780d37ac
JS
21#include "wx/control.h"
22
32c1cda2 23WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
780d37ac
JS
24
25// Group box
bfc6fde4 26class WXDLLEXPORT wxGauge95 : public wxControl
780d37ac 27{
bfc6fde4
VZ
28 DECLARE_DYNAMIC_CLASS(wxGauge95)
29
30public:
31 wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
32
33 wxGauge95(wxWindow *parent, wxWindowID id,
34 int range,
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)
40 {
41 Create(parent, id, range, pos, size, style, validator, name);
42 }
43
44 bool Create(wxWindow *parent, wxWindowID id,
45 int range,
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);
51
52 void SetShadowWidth(int w);
53 void SetBezelFace(int w);
54 void SetRange(int r);
55 void SetValue(int pos);
56
57 int GetShadowWidth(void) const ;
58 int GetBezelFace(void) const ;
59 int GetRange(void) const ;
60 int GetValue(void) const ;
61
cc2b7472
VZ
62 bool SetForegroundColour(const wxColour& col);
63 bool SetBackgroundColour(const wxColour& col);
bfc6fde4 64
d9317fd4
VZ
65 // overriden base class virtuals
66 virtual bool AcceptsFocus() const { return FALSE; }
67
bfc6fde4 68 // Backward compatibility
780d37ac 69#if WXWIN_COMPATIBILITY
bfc6fde4 70 void SetButtonColour(const wxColour& col) { SetForegroundColour(col); }
780d37ac
JS
71#endif
72
bfc6fde4 73 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
780d37ac 74
bfc6fde4
VZ
75protected:
76 int m_rangeMax;
77 int m_gaugePos;
780d37ac
JS
78};
79
1e6feb95
VZ
80#endif // wxUSE_GAUGE
81
780d37ac
JS
82#endif
83 // _GAUGEMSW_H_