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