]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/choice.h
9293bdab9f2f22ddc14e8ce13cd320998b9cfaeb
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 inline wxChoice( wxWindow
* pParent
51 ,const wxArrayString
& asChoices
53 ,const wxValidator
& rValidator
= wxDefaultValidator
54 ,const wxString
& rsName
= wxChoiceNameStr
68 bool Create( wxWindow
* pParent
70 ,const wxPoint
& rPos
= wxDefaultPosition
71 ,const wxSize
& rSize
= wxDefaultSize
73 ,const wxString asChoices
[] = NULL
75 ,const wxValidator
& rValidator
= wxDefaultValidator
76 ,const wxString
& rsName
= wxChoiceNameStr
79 bool Create( wxWindow
* pParent
83 ,const wxArrayString
& asChoices
85 ,const wxValidator
& rValidator
= wxDefaultValidator
86 ,const wxString
& rsName
= wxChoiceNameStr
90 // Implement base class virtuals
92 virtual int DoAppend(const wxString
& rsItem
);
93 virtual int DoInsert(const wxString
& rsItem
, int pos
);
94 virtual void Delete(int n
);
95 virtual void Clear(void);
97 virtual int GetCount(void) const;
98 virtual int GetSelection(void) const ;
99 virtual void SetSelection(int n
);
101 virtual int FindString(const wxString
& rsStr
) const;
102 virtual wxString
GetString(int n
) const ;
103 virtual void SetString( int n
104 ,const wxString
& rsStr
110 virtual bool OS2Command( WXUINT uParam
113 MRESULT
OS2WindowProc( WXUINT uMsg
119 virtual void DoSetItemClientData( int n
122 virtual void* DoGetItemClientData(int n
) const;
123 virtual void DoSetItemClientObject( int n
124 ,wxClientData
* pClientData
126 virtual wxClientData
* DoGetItemClientObject(int n
) const;
127 virtual wxSize
DoGetBestSize(void) const;
128 virtual void DoSetSize( int nX
132 ,int nsizeFlags
= wxSIZE_AUTO
135 }; // end of CLASS wxChoice
137 #endif // _WX_CHOICE_H_