]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/combobox.h
Added some standard further identifiers to help with WinCE toolbars
[wxWidgets.git] / include / wx / os2 / combobox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: combobox.h
3 // Purpose: wxComboBox class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/13/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_COMBOBOX_H_
13 #define _WX_COMBOBOX_H_
14
15 #include "wx/choice.h"
16
17 #if wxUSE_COMBOBOX
18
19 // Combobox item
20 class WXDLLEXPORT wxComboBox : public wxChoice
21 {
22
23 public:
24 inline wxComboBox() {}
25
26 inline wxComboBox( wxWindow* pParent
27 ,wxWindowID vId
28 ,const wxString& rsValue = wxEmptyString
29 ,const wxPoint& rPos = wxDefaultPosition
30 ,const wxSize& rSize = wxDefaultSize
31 ,int n = 0
32 ,const wxString asChoices[] = NULL
33 ,long lStyle = 0
34 ,const wxValidator& rValidator = wxDefaultValidator
35 ,const wxString& rsName = wxComboBoxNameStr
36 )
37 {
38 Create( pParent
39 ,vId
40 ,rsValue
41 ,rPos
42 ,rSize
43 ,n
44 ,asChoices
45 ,lStyle
46 ,rValidator
47 ,rsName
48 );
49 }
50
51 bool Create( wxWindow* pParent
52 ,wxWindowID vId
53 ,const wxString& rsValue = wxEmptyString
54 ,const wxPoint& rPos = wxDefaultPosition
55 ,const wxSize& rSize = wxDefaultSize
56 ,int n = 0
57 ,const wxString asChoices[] = NULL
58 ,long lStyle = 0
59 ,const wxValidator& rValidator = wxDefaultValidator
60 ,const wxString& rsName = wxComboBoxNameStr
61 );
62
63 //
64 // List functions: see wxChoice
65 //
66 inline wxString GetValue(void) const { return GetLabel(); }
67 virtual void SetValue(const wxString& rsValue);
68
69 //
70 // Clipboard operations
71 //
72 virtual void Copy();
73 virtual void Cut();
74 virtual void Paste();
75
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
81 ,long lTo
82 ,const wxString& rsValue
83 );
84 virtual void Remove( long lFrom
85 ,long lTo
86 );
87 inline virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
88 virtual void SetSelection( long lFrom
89 ,long lTo
90 );
91 virtual void SetEditable(bool bEditable);
92
93 virtual bool OS2Command( WXUINT uParam
94 ,WXWORD wId
95 );
96 bool ProcessEditMsg( WXUINT uMsg
97 ,WXWPARAM wParam
98 ,WXLPARAM lParam
99 );
100
101 protected:
102 virtual void DoSetSize( int nX
103 ,int nY
104 ,int nWidth
105 ,int nHeight
106 ,int nSizeFlags = wxSIZE_AUTO
107 );
108 private:
109 DECLARE_DYNAMIC_CLASS(wxComboBox)
110 }; // end of CLASS wxComboBox
111
112 #endif // wxUSE_COMBOBOX
113 #endif
114 // _WX_COMBOBOX_H_