]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/gaugemsw.h
radiobox now sends notification messages when the selection is changed from
[wxWidgets.git] / include / wx / msw / gaugemsw.h
CommitLineData
780d37ac
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gaugemsw.h
3// Purpose: wxGauge class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
780d37ac
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _GAUGEMSW_H_
13#define _GAUGEMSW_H_
14
15#ifdef __GNUG__
16#pragma interface "gaugemsw.h"
17#endif
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const char*) wxGaugeNameStr;
22
23// Group box
24class WXDLLEXPORT wxGaugeMSW: public wxControl
25{
bfc6fde4
VZ
26 DECLARE_DYNAMIC_CLASS(wxGaugeMSW)
27
28public:
29 wxGaugeMSW(void) { m_rangeMax = 0; m_gaugePos = 0; }
30
31 wxGaugeMSW(wxWindow *parent, wxWindowID id,
32 int range,
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)
38 {
39 Create(parent, id, range, pos, size, style, validator, name);
40 }
41
42 bool Create(wxWindow *parent, wxWindowID id,
43 int range,
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);
49
50 void SetShadowWidth(int w);
51 void SetBezelFace(int w);
52 void SetRange(int r);
53 void SetValue(int pos);
54
55 int GetShadowWidth(void) const ;
56 int GetBezelFace(void) const ;
57 int GetRange(void) const ;
58 int GetValue(void) const ;
59
60 void SetForegroundColour(const wxColour& col);
61 void SetBackgroundColour(const wxColour& col);
62
63 // Backward compatibility
780d37ac 64#if WXWIN_COMPATIBILITY
bfc6fde4 65 void SetButtonColour(const wxColour& col) { SetForegroundColour(col); }
780d37ac
JS
66#endif
67
bfc6fde4 68 virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ;
780d37ac 69
bfc6fde4
VZ
70protected:
71 int m_rangeMax;
72 int m_gaugePos;
780d37ac 73
bfc6fde4
VZ
74 virtual void DoSetSize(int x, int y,
75 int width, int height,
76 int sizeFlags = wxSIZE_AUTO);
780d37ac
JS
77};
78
79#endif
80 // _GAUGEMSW_H_