1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/choice.h
3 // Purpose: wxChoice class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxChoice
: public wxChoiceBase
20 DECLARE_DYNAMIC_CLASS(wxChoice
)
27 inline wxChoice( wxWindow
* pParent
29 ,const wxPoint
& rPos
= wxDefaultPosition
30 ,const wxSize
& rSize
= wxDefaultSize
32 ,const wxString asChoices
[] = NULL
34 ,const wxValidator
& rValidator
= wxDefaultValidator
35 ,const wxString
& rsName
= wxChoiceNameStr
50 inline wxChoice( wxWindow
* pParent
54 ,const wxArrayString
& asChoices
56 ,const wxValidator
& rValidator
= wxDefaultValidator
57 ,const wxString
& rsName
= wxChoiceNameStr
71 bool Create( wxWindow
* pParent
73 ,const wxPoint
& rPos
= wxDefaultPosition
74 ,const wxSize
& rSize
= wxDefaultSize
76 ,const wxString asChoices
[] = NULL
78 ,const wxValidator
& rValidator
= wxDefaultValidator
79 ,const wxString
& rsName
= wxChoiceNameStr
82 bool Create( wxWindow
* pParent
86 ,const wxArrayString
& asChoices
88 ,const wxValidator
& rValidator
= wxDefaultValidator
89 ,const wxString
& rsName
= wxChoiceNameStr
93 // Implement base class virtuals
95 virtual void DoDeleteOneItem(unsigned int n
);
96 virtual void DoClear(void);
98 virtual unsigned int GetCount() const;
99 virtual int GetSelection(void) const;
100 virtual void SetSelection(int n
);
102 virtual wxString
GetString(unsigned int n
) const;
103 virtual void SetString(unsigned int n
, const wxString
& rsStr
);
108 virtual bool OS2Command( WXUINT uParam
111 MRESULT
OS2WindowProc( WXUINT uMsg
117 virtual int DoInsertItems(const wxArrayStringsAdapter
& items
,
120 wxClientDataType type
);
122 virtual void DoSetItemClientData(unsigned int n
, void* pClientData
);
123 virtual void* DoGetItemClientData(unsigned int n
) const;
124 virtual wxSize
DoGetBestSize(void) const;
125 virtual void DoSetSize( int nX
129 ,int nsizeFlags
= wxSIZE_AUTO
132 }; // end of CLASS wxChoice
134 #endif // _WX_CHOICE_H_