]>
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 /////////////////////////////////////////////////////////////////////////////
15 WXDLLEXPORT_DATA(extern const char*) wxChoiceNameStr
;
18 class WXDLLEXPORT wxChoice
: public wxChoiceBase
20 DECLARE_DYNAMIC_CLASS(wxChoice
)
26 inline wxChoice( wxWindow
* pParent
28 ,const wxPoint
& rPos
= wxDefaultPosition
29 ,const wxSize
& rSize
= wxDefaultSize
31 ,const wxString asChoices
[] = NULL
34 ,const wxValidator
& rValidator
= wxDefaultValidator
36 ,const wxString
& rsName
= wxChoiceNameStr
53 bool Create( wxWindow
* pParent
55 ,const wxPoint
& rPos
= wxDefaultPosition
56 ,const wxSize
& rSize
= wxDefaultSize
58 ,const wxString asChoices
[] = NULL
61 ,const wxValidator
& rValidator
= wxDefaultValidator
63 ,const wxString
& rsName
= wxChoiceNameStr
67 // Implement base class virtuals
69 virtual int DoAppend(const wxString
& rsItem
);
70 virtual void Delete(int n
);
71 virtual void Clear(void);
73 virtual int GetCount(void) const;
74 virtual int GetSelection(void) const ;
75 virtual void SetSelection(int n
);
77 virtual int FindString(const wxString
& rsStr
) const;
78 virtual wxString
GetString(int n
) const ;
79 virtual void SetString( int n
80 ,const wxString
& rsStr
86 virtual bool OS2Command( WXUINT uParam
89 MRESULT
OS2WindowProc( WXUINT uMsg
95 virtual void DoSetItemClientData( int n
98 virtual void* DoGetItemClientData(int n
) const;
99 virtual void DoSetItemClientObject( int n
100 ,wxClientData
* pClientData
102 virtual wxClientData
* DoGetItemClientObject(int n
) const;
103 virtual wxSize
DoGetBestSize(void) const;
104 virtual void DoSetSize( int nX
108 ,int nsizeFlags
= wxSIZE_AUTO
111 }; // end of CLASS wxChoice
113 #endif // _WX_CHOICE_H_