]>
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
)
25 inline wxChoice(wxWindow
*parent
, wxWindowID id
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
28 int n
= 0, const wxString choices
[] = NULL
,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxChoiceNameStr
)
33 Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
39 int n
= 0, const wxString choices
[] = NULL
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxChoiceNameStr
);
44 virtual int DoAppend(const wxString
& item
);
45 virtual void Delete(int n
);
48 virtual int GetCount() const;
49 virtual int GetSelection() const ;
50 virtual void SetSelection(int n
);
52 virtual int FindString(const wxString
& s
) const;
53 virtual wxString
GetString(int n
) const ;
56 virtual bool OS2Command(WXUINT param
, WXWORD id
);
57 MRESULT
OS2WindowProc(HWND hwnd
, WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
);
60 virtual void DoSetClientData( int n
, void* clientData
);
61 virtual void* DoGetClientData( int n
) const;
62 virtual void DoSetClientObject( int n
, wxClientData
* clientData
);
63 virtual wxClientData
* DoGetClientObject( int n
) const;
66 virtual wxSize
DoGetBestSize();
67 virtual void DoSetSize(int x
, int y
,
68 int width
, int height
,
69 int sizeFlags
= wxSIZE_AUTO
);
71 // Virtual function hiding supression
72 inline virtual void DoSetClientData( void *data
)
73 { wxWindowBase::DoSetClientData(data
); }
74 inline virtual void DoSetClientObject( wxClientData
*data
)
75 { wxWindowBase::DoSetClientObject(data
); }
76 inline virtual wxClientData
*DoGetClientObject() const
77 { return(wxWindowBase::DoGetClientObject());}
78 inline virtual void *DoGetClientData() const
79 { return(wxWindowBase::DoGetClientData());}
82 #endif // _WX_CHOICE_H_