]>
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 inline wxComboBox( wxWindow
* pParent
53 ,const wxString
& rsValue
56 ,const wxArrayString
& asChoices
58 ,const wxValidator
& rValidator
= wxDefaultValidator
59 ,const wxString
& rsName
= wxComboBoxNameStr
74 bool Create( wxWindow
* pParent
76 ,const wxString
& rsValue
= wxEmptyString
77 ,const wxPoint
& rPos
= wxDefaultPosition
78 ,const wxSize
& rSize
= wxDefaultSize
80 ,const wxString asChoices
[] = NULL
82 ,const wxValidator
& rValidator
= wxDefaultValidator
83 ,const wxString
& rsName
= wxComboBoxNameStr
86 bool Create( wxWindow
* pParent
88 ,const wxString
& rsValue
91 ,const wxArrayString
& asChoices
93 ,const wxValidator
& rValidator
= wxDefaultValidator
94 ,const wxString
& rsName
= wxComboBoxNameStr
98 // List functions: see wxChoice
100 inline wxString
GetValue(void) const { return GetLabel(); }
101 virtual void SetValue(const wxString
& rsValue
);
104 // Clipboard operations
108 virtual void Paste();
110 virtual void SetInsertionPoint(long lPos
);
111 virtual void SetInsertionPointEnd(void);
112 virtual long GetInsertionPoint(void) const;
113 virtual wxTextPos
GetLastPosition(void) const;
114 virtual void Replace( long lFrom
116 ,const wxString
& rsValue
118 virtual void Remove( long lFrom
121 inline virtual void SetSelection(int n
) { wxChoice::SetSelection(n
); }
122 virtual void SetSelection( long lFrom
125 virtual void SetEditable(bool bEditable
);
127 virtual bool OS2Command( WXUINT uParam
130 bool ProcessEditMsg( WXUINT uMsg
136 virtual void DoSetSize( int nX
140 ,int nSizeFlags
= wxSIZE_AUTO
143 DECLARE_DYNAMIC_CLASS(wxComboBox
)
144 }; // end of CLASS wxComboBox
146 #endif // wxUSE_COMBOBOX