1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: radiobut.h
|
|
|
|
// Purpose: wxRadioButton class
|
1999-10-12 18:49:24 -04:00
|
|
|
// Author: David Webster
|
1999-07-29 01:11:30 -04:00
|
|
|
// Modified by:
|
1999-10-12 18:49:24 -04:00
|
|
|
// Created: 10/12/99
|
1999-07-29 01:11:30 -04:00
|
|
|
// RCS-ID: $Id$
|
1999-10-12 18:49:24 -04:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_RADIOBUT_H_
|
|
|
|
#define _WX_RADIOBUT_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
2001-12-17 17:56:41 -05:00
|
|
|
public:
|
2002-01-18 11:57:12 -05:00
|
|
|
inline wxRadioButton() { Init(); }
|
2001-12-17 17:56:41 -05: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 11:57:12 -05:00
|
|
|
Init();
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
Create( pParent
|
|
|
|
,vId
|
|
|
|
,rsLabel
|
|
|
|
,rPos
|
|
|
|
,rSize
|
|
|
|
,lStyle
|
|
|
|
,rValidator
|
|
|
|
,rsName
|
|
|
|
);
|
|
|
|
}
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2001-12-17 17:56:41 -05: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 11:57:12 -05:00
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
virtual void SetLabel(const wxString& rsLabel);
|
|
|
|
virtual void SetValue(bool bVal);
|
|
|
|
virtual bool GetValue(void) const ;
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2002-07-09 01:03:04 -04: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 11:57:12 -05:00
|
|
|
protected:
|
2007-11-14 09:44:13 -05:00
|
|
|
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
2002-01-18 11:57:12 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
private:
|
2002-01-18 11:57:12 -05:00
|
|
|
void Init(void);
|
|
|
|
|
|
|
|
bool m_bFocusJustSet;
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxRadioButton)
|
|
|
|
}; // end of wxRadioButton
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_RADIOBUT_H_
|