]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/combobox.h
IFF support off by default
[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 19// Combobox item
fb49f3b3 20class WXDLLEXPORT wxComboBox : public wxChoice
0e320a79 21{
0e320a79
DW
22
23 public:
24 inline wxComboBox() {}
25
fb49f3b3
DW
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
57c4d796 34#if wxUSE_VALIDATORS
fb49f3b3 35 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 36#endif
fb49f3b3
DW
37 ,const wxString& rsName = wxComboBoxNameStr
38 )
39 {
40 Create( pParent
41 ,vId
42 ,rsValue
43 ,rPos
44 ,rSize
45 ,n
46 ,asChoices
47 ,lStyle
48#if wxUSE_VALIDATORS
49 ,rValidator
50#endif
51 ,rsName
52 );
53 }
0e320a79 54
fb49f3b3
DW
55 bool Create( wxWindow* pParent
56 ,wxWindowID vId
57 ,const wxString& rsValue = wxEmptyString
58 ,const wxPoint& rPos = wxDefaultPosition
59 ,const wxSize& rSize = wxDefaultSize
60 ,int n = 0
61 ,const wxString asChoices[] = NULL
62 ,long lStyle = 0
57c4d796 63#if wxUSE_VALIDATORS
fb49f3b3 64 ,const wxValidator& rValidator = wxDefaultValidator
57c4d796 65#endif
fb49f3b3
DW
66 ,const wxString& rsName = wxComboBoxNameStr
67 );
0e320a79 68
fb49f3b3 69 //
37f214d5 70 // List functions: see wxChoice
fb49f3b3
DW
71 //
72 inline wxString GetValue(void) const { return GetLabel(); }
73 virtual void SetValue(const wxString& rsValue);
37f214d5 74
fb49f3b3 75 //
37f214d5 76 // Clipboard operations
fb49f3b3 77 //
37f214d5
DW
78 virtual void Copy();
79 virtual void Cut();
80 virtual void Paste();
37f214d5 81
fb49f3b3
DW
82 virtual void SetInsertionPoint(long lPos);
83 virtual void SetInsertionPointEnd(void);
84 virtual long GetInsertionPoint(void) const;
85 virtual long GetLastPosition(void) const;
86 virtual void Replace( long lFrom
87 ,long lTo
88 ,const wxString& rsValue
89 );
90 virtual void Remove( long lFrom
91 ,long lTo
92 );
93 inline virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
94 virtual void SetSelection( long lFrom
95 ,long lTo
96 );
97 virtual void SetEditable(bool bEditable);
98
99 virtual bool OS2Command( WXUINT uParam
100 ,WXWORD wId
101 );
102 bool ProcessEditMsg( WXUINT uMsg
103 ,WXWPARAM wParam
104 ,WXLPARAM lParam
105 );
0e320a79 106
37f214d5 107protected:
fb49f3b3
DW
108 virtual void DoSetSize( int nX
109 ,int nY
110 ,int nWidth
111 ,int nHeight
112 ,int nSizeFlags = wxSIZE_AUTO
113 );
114private:
115 DECLARE_DYNAMIC_CLASS(wxComboBox)
116}; // end of CLASS wxComboBox
0e320a79 117
37f214d5 118#endif // wxUSE_COMBOBOX
0e320a79
DW
119#endif
120 // _WX_COMBOBOX_H_