/////////////////////////////////////////////////////////////////////////////
-// Name: radiobut.h
+// Name: wx/msw/radiobut.h
// Purpose: wxRadioButton class
// Author: Julian Smart
// Modified by:
#ifndef _WX_RADIOBUT_H_
#define _WX_RADIOBUT_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "radiobut.h"
-#endif
-
-class WXDLLEXPORT wxRadioButton: public wxControl
+class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
{
public:
// ctors and creation functions
- wxRadioButton();
+ wxRadioButton() { Init(); }
wxRadioButton(wxWindow *parent,
wxWindowID id,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
- const wxString& name = wxRadioButtonNameStr);
+ const wxString& name = wxRadioButtonNameStr)
+ {
+ Init();
+
+ Create(parent, id, label, pos, size, style, validator, name);
+ }
bool Create(wxWindow *parent,
wxWindowID id,
// implementation only from now on
virtual bool MSWCommand(WXUINT param, WXWORD id);
virtual void Command(wxCommandEvent& event);
+ virtual bool HasTransparentBackground() { return true; }
+
+ virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
protected:
+ virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual wxSize DoGetBestSize() const;
private: