]>
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
31 ,const wxValidator
& rValidator
= wxDefaultValidator
32 ,const wxString
& rsName
= wxChoiceNameStr
47 bool Create( wxWindow
* pParent
49 ,const wxPoint
& rPos
= wxDefaultPosition
50 ,const wxSize
& rSize
= wxDefaultSize
52 ,const wxString asChoices
[] = NULL
54 ,const wxValidator
& rValidator
= wxDefaultValidator
55 ,const wxString
& rsName
= wxChoiceNameStr
59 // Implement base class virtuals
61 virtual int DoAppend(const wxString
& rsItem
);
62 virtual void Delete(int n
);
63 virtual void Clear(void);
65 virtual int GetCount(void) const;
66 virtual int GetSelection(void) const ;
67 virtual void SetSelection(int n
);
69 virtual int FindString(const wxString
& rsStr
) const;
70 virtual wxString
GetString(int n
) const ;
71 virtual void SetString( int n
72 ,const wxString
& rsStr
78 virtual bool OS2Command( WXUINT uParam
81 MRESULT
OS2WindowProc( WXUINT uMsg
87 virtual void DoSetItemClientData( int n
90 virtual void* DoGetItemClientData(int n
) const;
91 virtual void DoSetItemClientObject( int n
92 ,wxClientData
* pClientData
94 virtual wxClientData
* DoGetItemClientObject(int n
) const;
95 virtual wxSize
DoGetBestSize(void) const;
96 virtual void DoSetSize( int nX
100 ,int nsizeFlags
= wxSIZE_AUTO
103 }; // end of CLASS wxChoice
105 #endif // _WX_CHOICE_H_