1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: radiobut.h
|
|
|
|
// Purpose: wxRadioButton class
|
1999-10-12 22:49:24 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-12 22:49:24 +00:00
|
|
|
// Created: 10/12/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-12 22:49:24 +00:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_RADIOBUT_H_
|
|
|
|
#define _WX_RADIOBUT_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
2001-12-17 22:56:41 +00:00
|
|
|
public:
|
2002-01-18 16:57:12 +00:00
|
|
|
inline wxRadioButton() { Init(); }
|
2001-12-17 22:56:41 +00:00
|
|
|
inline wxRadioButton( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0
|
|
|
|
,const wxValidator& rValidator = wxDefaultValidator
|
|
|
|
,const wxString& rsName = wxRadioButtonNameStr
|
|
|
|
)
|
|
|
|
{
|
2002-01-18 16:57:12 +00:00
|
|
|
Init();
|
|
|
|
|
2001-12-17 22:56:41 +00:00
|
|
|
Create( pParent
|
|
|
|
,vId
|
|
|
|
,rsLabel
|
|
|
|
,rPos
|
|
|
|
,rSize
|
|
|
|
,lStyle
|
|
|
|
,rValidator
|
|
|
|
,rsName
|
|
|
|
);
|
|
|
|
}
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2001-12-17 22:56:41 +00:00
|
|
|
bool Create( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0
|
|
|
|
,const wxValidator& rValidator = wxDefaultValidator
|
|
|
|
,const wxString& rsName = wxRadioButtonNameStr
|
|
|
|
);
|
2002-01-18 16:57:12 +00:00
|
|
|
|
2001-12-17 22:56:41 +00:00
|
|
|
virtual void SetLabel(const wxString& rsLabel);
|
|
|
|
virtual void SetValue(bool bVal);
|
|
|
|
virtual bool GetValue(void) const ;
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2002-07-09 05:03:04 +00:00
|
|
|
bool OS2Command( WXUINT wParam
|
|
|
|
,WXWORD wId
|
|
|
|
);
|
|
|
|
void Command(wxCommandEvent& rEvent);
|
|
|
|
virtual MRESULT OS2WindowProc( WXUINT uMsg
|
|
|
|
,WXWPARAM wParam
|
|
|
|
,WXLPARAM lParam
|
|
|
|
);
|
|
|
|
virtual void SetFocus(void);
|
|
|
|
|
2002-01-18 16:57:12 +00:00
|
|
|
protected:
|
2007-11-14 14:44:13 +00:00
|
|
|
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
2002-01-18 16:57:12 +00:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
|
2001-12-17 22:56:41 +00:00
|
|
|
private:
|
2002-01-18 16:57:12 +00:00
|
|
|
void Init(void);
|
|
|
|
|
|
|
|
bool m_bFocusJustSet;
|
|
|
|
|
2001-12-17 22:56:41 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxRadioButton)
|
|
|
|
}; // end of wxRadioButton
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_RADIOBUT_H_
|