]>
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"
19 WXDLLEXPORT_DATA(extern const char*) wxComboBoxNameStr
;
20 WXDLLEXPORT_DATA(extern const char*) wxEmptyString
;
23 class WXDLLEXPORT wxComboBox
: public wxChoice
27 inline wxComboBox() {}
29 inline wxComboBox( wxWindow
* pParent
31 ,const wxString
& rsValue
= wxEmptyString
32 ,const wxPoint
& rPos
= wxDefaultPosition
33 ,const wxSize
& rSize
= wxDefaultSize
35 ,const wxString asChoices
[] = NULL
38 ,const wxValidator
& rValidator
= wxDefaultValidator
40 ,const wxString
& rsName
= wxComboBoxNameStr
58 bool Create( wxWindow
* pParent
60 ,const wxString
& rsValue
= wxEmptyString
61 ,const wxPoint
& rPos
= wxDefaultPosition
62 ,const wxSize
& rSize
= wxDefaultSize
64 ,const wxString asChoices
[] = NULL
67 ,const wxValidator
& rValidator
= wxDefaultValidator
69 ,const wxString
& rsName
= wxComboBoxNameStr
73 // List functions: see wxChoice
75 inline wxString
GetValue(void) const { return GetLabel(); }
76 virtual void SetValue(const wxString
& rsValue
);
79 // Clipboard operations
85 virtual void SetInsertionPoint(long lPos
);
86 virtual void SetInsertionPointEnd(void);
87 virtual long GetInsertionPoint(void) const;
88 virtual long GetLastPosition(void) const;
89 virtual void Replace( long lFrom
91 ,const wxString
& rsValue
93 virtual void Remove( long lFrom
96 inline virtual void SetSelection(int n
) { wxChoice::SetSelection(n
); }
97 virtual void SetSelection( long lFrom
100 virtual void SetEditable(bool bEditable
);
102 virtual bool OS2Command( WXUINT uParam
105 bool ProcessEditMsg( WXUINT uMsg
111 virtual void DoSetSize( int nX
115 ,int nSizeFlags
= wxSIZE_AUTO
118 DECLARE_DYNAMIC_CLASS(wxComboBox
)
119 }; // end of CLASS wxComboBox
121 #endif // wxUSE_COMBOBOX