#ifndef _WX_RADIOBOX_H_
#define _WX_RADIOBOX_H_
-WXDLLEXPORT_DATA(extern const char*) wxRadioBoxNameStr;
-
// List box item
class WXDLLEXPORT wxBitmap ;
,const wxString asChoices[] = NULL
,int nMajorDim = 0
,long lStyle = wxRA_HORIZONTAL
-#if wxUSE_VALIDATORS
,const wxValidator& rVal = wxDefaultValidator
-#endif
,const wxString& rsName = wxRadioBoxNameStr
)
{
,asChoices
,nMajorDim
,lStyle
-#if wxUSE_VALIDATORS
,rVal
-#endif
+ ,rsName
+ );
+ }
+
+ inline wxRadioBox( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxString& rsTitle
+ ,const wxPoint& rPos
+ ,const wxSize& rSize
+ ,const wxArrayString& asChoices
+ ,int nMajorDim = 0
+ ,long lStyle = wxRA_HORIZONTAL
+ ,const wxValidator& rVal = wxDefaultValidator
+ ,const wxString& rsName = wxRadioBoxNameStr
+ )
+ {
+ Create( pParent
+ ,vId
+ ,rsTitle
+ ,rPos
+ ,rSize
+ ,asChoices
+ ,nMajorDim
+ ,lStyle
+ ,rVal
,rsName
);
}
,const wxString asChoices[] = NULL
,int nMajorDim = 0
,long lStyle = wxRA_HORIZONTAL
-#if wxUSE_VALIDATORS
,const wxValidator& rVal = wxDefaultValidator
-#endif
,const wxString& rsName = wxRadioBoxNameStr
);
+ bool Create( wxWindow* pParent
+ ,wxWindowID vId
+ ,const wxString& rsTitle
+ ,const wxPoint& rPos
+ ,const wxSize& rSize
+ ,const wxArrayString& asChoices
+ ,int nMajorDim = 0
+ ,long lStyle = wxRA_HORIZONTAL
+ ,const wxValidator& rVal = wxDefaultValidator
+ ,const wxString& rsName = wxRadioBoxNameStr
+ );
+
void Command(wxCommandEvent& rEvent);
bool ContainsHWND(WXHWND hWnd) const;
- bool Enable(bool bEnable);
+ virtual bool Enable(bool bEnable = TRUE);
void Enable( int nItem
,bool bEnable
);
,WXWORD wId
);
void SendNotificationEvent(void);
- void Show( int nItem
+ virtual void Show( int nItem
,bool bShow = TRUE
) ;
bool Show(bool bShow);
void GetSize( int* pnX
,int* pnY
) const;
- void GetSizeFlags(void) const;
+ inline int GetSizeFlags(void) const { return m_nSizeFlags; }
void AdjustButtons( int nX
,int nY
,int nWidth
,int nHeight
- ,int lSizeFlags
+ ,int nSizeFlags
);
wxString GetString(int nIndex) const;
virtual wxString GetStringSelection(void) const;
protected:
- void AdjustButtons( int nX
- ,int nY
- ,int nWidth
- ,int nHeight
- ,long lSizeFlags
- );
virtual wxSize DoGetBestSize(void) const;
virtual void DoSetSize( int nX
,int nY