]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/choice.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxChoice class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 class WXDLLEXPORT wxChoice
: public wxChoiceBase
18 DECLARE_DYNAMIC_CLASS(wxChoice
)
24 inline wxChoice( wxWindow
* pParent
26 ,const wxPoint
& rPos
= wxDefaultPosition
27 ,const wxSize
& rSize
= wxDefaultSize
29 ,const wxString asChoices
[] = NULL
32 ,const wxValidator
& rValidator
= wxDefaultValidator
34 ,const wxString
& rsName
= wxChoiceNameStr
51 bool Create( wxWindow
* pParent
53 ,const wxPoint
& rPos
= wxDefaultPosition
54 ,const wxSize
& rSize
= wxDefaultSize
56 ,const wxString asChoices
[] = NULL
59 ,const wxValidator
& rValidator
= wxDefaultValidator
61 ,const wxString
& rsName
= wxChoiceNameStr
65 // Implement base class virtuals
67 virtual int DoAppend(const wxString
& rsItem
);
68 virtual void Delete(int n
);
69 virtual void Clear(void);
71 virtual int GetCount(void) const;
72 virtual int GetSelection(void) const ;
73 virtual void SetSelection(int n
);
75 virtual int FindString(const wxString
& rsStr
) const;
76 virtual wxString
GetString(int n
) const ;
77 virtual void SetString( int n
78 ,const wxString
& rsStr
84 virtual bool OS2Command( WXUINT uParam
87 MRESULT
OS2WindowProc( WXUINT uMsg
93 virtual void DoSetItemClientData( int n
96 virtual void* DoGetItemClientData(int n
) const;
97 virtual void DoSetItemClientObject( int n
98 ,wxClientData
* pClientData
100 virtual wxClientData
* DoGetItemClientObject(int n
) const;
101 virtual wxSize
DoGetBestSize(void) const;
102 virtual void DoSetSize( int nX
106 ,int nsizeFlags
= wxSIZE_AUTO
109 }; // end of CLASS wxChoice
111 #endif // _WX_CHOICE_H_