]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/choice.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/choice.h
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 size_t GetCount() const;
98 virtual int GetSelection(void) const ;
99 virtual void SetSelection(int n
);
101 virtual wxString
GetString(int n
) const ;
102 virtual void SetString( int n
103 ,const wxString
& rsStr
109 virtual bool OS2Command( WXUINT uParam
112 MRESULT
OS2WindowProc( WXUINT uMsg
118 virtual void DoSetItemClientData( int n
121 virtual void* DoGetItemClientData(int n
) const;
122 virtual void DoSetItemClientObject( int n
123 ,wxClientData
* pClientData
125 virtual wxClientData
* DoGetItemClientObject(int n
) const;
126 virtual wxSize
DoGetBestSize(void) const;
127 virtual void DoSetSize( int nX
131 ,int nsizeFlags
= wxSIZE_AUTO
134 }; // end of CLASS wxChoice
136 #endif // _WX_CHOICE_H_