]>
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
, unsigned int pos
);
94 virtual void Delete(unsigned int n
);
95 virtual void Clear(void);
97 virtual unsigned int GetCount() const;
98 virtual int GetSelection(void) const;
99 virtual void SetSelection(int n
);
101 virtual wxString
GetString(unsigned int n
) const;
102 virtual void SetString(unsigned int n
, const wxString
& rsStr
);
107 virtual bool OS2Command( WXUINT uParam
110 MRESULT
OS2WindowProc( WXUINT uMsg
116 virtual void DoSetItemClientData(unsigned int n
, void* pClientData
);
117 virtual void* DoGetItemClientData(unsigned int n
) const;
118 virtual void DoSetItemClientObject(unsigned int n
, wxClientData
* pClientData
);
119 virtual wxClientData
* DoGetItemClientObject(unsigned int n
) const;
120 virtual wxSize
DoGetBestSize(void) const;
121 virtual void DoSetSize( int nX
125 ,int nsizeFlags
= wxSIZE_AUTO
128 }; // end of CLASS wxChoice
130 #endif // _WX_CHOICE_H_