]>
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
34 ,const wxValidator
& rValidator
= wxDefaultValidator
35 ,const wxString
& rsName
= wxComboBoxNameStr
51 bool Create( wxWindow
* pParent
53 ,const wxString
& rsValue
= wxEmptyString
54 ,const wxPoint
& rPos
= wxDefaultPosition
55 ,const wxSize
& rSize
= wxDefaultSize
57 ,const wxString asChoices
[] = NULL
59 ,const wxValidator
& rValidator
= wxDefaultValidator
60 ,const wxString
& rsName
= wxComboBoxNameStr
64 // List functions: see wxChoice
66 inline wxString
GetValue(void) const { return GetLabel(); }
67 virtual void SetValue(const wxString
& rsValue
);
70 // Clipboard operations
76 virtual void SetInsertionPoint(long lPos
);
77 virtual void SetInsertionPointEnd(void);
78 virtual long GetInsertionPoint(void) const;
79 virtual long GetLastPosition(void) const;
80 virtual void Replace( long lFrom
82 ,const wxString
& rsValue
84 virtual void Remove( long lFrom
87 inline virtual void SetSelection(int n
) { wxChoice::SetSelection(n
); }
88 virtual void SetSelection( long lFrom
91 virtual void SetEditable(bool bEditable
);
93 virtual bool OS2Command( WXUINT uParam
96 bool ProcessEditMsg( WXUINT uMsg
102 virtual void DoSetSize( int nX
106 ,int nSizeFlags
= wxSIZE_AUTO
109 DECLARE_DYNAMIC_CLASS(wxComboBox
)
110 }; // end of CLASS wxComboBox
112 #endif // wxUSE_COMBOBOX