]>
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
*parent
, wxWindowID id
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 int n
= 0, const wxString choices
[] = NULL
,
32 # if defined(__VISAGECPP__)
33 const wxValidator
* validator
= wxDefaultValidator
,
35 const wxValidator
& validator
= wxDefaultValidator
,
38 const wxString
& name
= wxChoiceNameStr
)
40 Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
);
43 bool Create(wxWindow
*parent
, wxWindowID id
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 int n
= 0, const wxString choices
[] = NULL
,
49 # if defined(__VISAGECPP__)
50 const wxValidator
* validator
= wxDefaultValidator
,
52 const wxValidator
& validator
= wxDefaultValidator
,
55 const wxString
& name
= wxChoiceNameStr
);
57 // Implement base class virtuals
58 virtual int DoAppend(const wxString
& item
);
59 virtual void Delete(int n
);
62 virtual int GetCount() const;
63 virtual int GetSelection() const ;
64 virtual void SetSelection(int n
);
66 virtual int FindString(const wxString
& s
) const;
67 virtual wxString
GetString(int n
) const ;
68 virtual void SetString(int n
, const wxString
& s
);
71 virtual bool OS2Command(WXUINT param
, WXWORD id
);
72 MRESULT
OS2WindowProc(HWND hwnd
, WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
);
75 virtual void DoSetItemClientData( int n
, void* clientData
);
76 virtual void* DoGetItemClientData( int n
) const;
77 virtual void DoSetItemClientObject( int n
, wxClientData
* clientData
);
78 virtual wxClientData
* DoGetItemClientObject( int n
) const;
81 virtual wxSize
DoGetBestSize();
82 virtual void DoSetSize(int x
, int y
,
83 int width
, int height
,
84 int sizeFlags
= wxSIZE_AUTO
);
86 // Virtual function hiding supression
88 inline virtual void DoSetClientData( void *data )
89 { wxWindowBase::DoSetClientData(data); }
90 inline virtual void DoSetClientObject( wxClientData *data )
91 { wxWindowBase::DoSetClientObject(data); }
92 inline virtual wxClientData *DoGetClientObject() const
93 { return(wxWindowBase::DoGetClientObject());}
94 inline virtual void *DoGetClientData() const
95 { return(wxWindowBase::DoGetClientData());}
99 #endif // _WX_CHOICE_H_