1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: radiobut.h
|
|
|
|
// Purpose: wxRadioButton class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2001-06-26 20:59:19 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_RADIOBUT_H_
|
|
|
|
#define _WX_RADIOBUT_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "radiobut.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxRadioButton: public wxControl
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxRadioButton)
|
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
inline wxRadioButton(void) {}
|
1998-07-04 15:17:59 +00:00
|
|
|
inline wxRadioButton(wxWindow *parent, wxWindowID id,
|
1998-05-20 14:12:05 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
1998-07-04 15:17:59 +00:00
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
1998-05-20 14:12:05 +00:00
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxRadioButtonNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
1998-07-04 15:17:59 +00:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
1998-05-20 14:12:05 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
1998-07-04 15:17:59 +00:00
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
1998-05-20 14:12:05 +00:00
|
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxRadioButtonNameStr);
|
|
|
|
|
|
|
|
virtual void SetLabel(const wxString& label);
|
1998-07-04 15:17:59 +00:00
|
|
|
virtual void SetValue(bool val);
|
1998-05-20 14:12:05 +00:00
|
|
|
virtual bool GetValue(void) const ;
|
|
|
|
|
1998-11-24 21:55:10 +00:00
|
|
|
bool MSWCommand(WXUINT param, WXWORD id);
|
2000-07-15 19:51:35 +00:00
|
|
|
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
|
|
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
void Command(wxCommandEvent& event);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_RADIOBUT_H_
|