]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/combobox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxComboBox class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COMBOBOX_H_
13 #define _WX_COMBOBOX_H_
15 #include "wx/choice.h"
20 class WXDLLEXPORT wxComboBox
: public wxChoice
24 inline wxComboBox() {}
26 inline wxComboBox( wxWindow
* pParent
28 ,const wxString
& rsValue
= wxEmptyString
29 ,const wxPoint
& rPos
= wxDefaultPosition
30 ,const wxSize
& rSize
= wxDefaultSize
32 ,const wxString asChoices
[] = NULL
35 ,const wxValidator
& rValidator
= wxDefaultValidator
37 ,const wxString
& rsName
= wxComboBoxNameStr
55 bool Create( wxWindow
* pParent
57 ,const wxString
& rsValue
= wxEmptyString
58 ,const wxPoint
& rPos
= wxDefaultPosition
59 ,const wxSize
& rSize
= wxDefaultSize
61 ,const wxString asChoices
[] = NULL
64 ,const wxValidator
& rValidator
= wxDefaultValidator
66 ,const wxString
& rsName
= wxComboBoxNameStr
70 // List functions: see wxChoice
72 inline wxString
GetValue(void) const { return GetLabel(); }
73 virtual void SetValue(const wxString
& rsValue
);
76 // Clipboard operations
82 virtual void SetInsertionPoint(long lPos
);
83 virtual void SetInsertionPointEnd(void);
84 virtual long GetInsertionPoint(void) const;
85 virtual long GetLastPosition(void) const;
86 virtual void Replace( long lFrom
88 ,const wxString
& rsValue
90 virtual void Remove( long lFrom
93 inline virtual void SetSelection(int n
) { wxChoice::SetSelection(n
); }
94 virtual void SetSelection( long lFrom
97 virtual void SetEditable(bool bEditable
);
99 virtual bool OS2Command( WXUINT uParam
102 bool ProcessEditMsg( WXUINT uMsg
108 virtual void DoSetSize( int nX
112 ,int nSizeFlags
= wxSIZE_AUTO
115 DECLARE_DYNAMIC_CLASS(wxComboBox
)
116 }; // end of CLASS wxComboBox
118 #endif // wxUSE_COMBOBOX