]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/combobox.h
Applied patch [ 778625 ] wxSVGFileDC and UNICODE build
[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
fb49f3b3 34 ,const wxValidator& rValidator = wxDefaultValidator
fb49f3b3
DW
35 ,const wxString& rsName = wxComboBoxNameStr
36 )
37 {
38 Create( pParent
39 ,vId
40 ,rsValue
41 ,rPos
42 ,rSize
43 ,n
44 ,asChoices
45 ,lStyle
fb49f3b3 46 ,rValidator
fb49f3b3
DW
47 ,rsName
48 );
49 }
0e320a79 50
fb49f3b3
DW
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
fb49f3b3 59 ,const wxValidator& rValidator = wxDefaultValidator
fb49f3b3
DW
60 ,const wxString& rsName = wxComboBoxNameStr
61 );
0e320a79 62
fb49f3b3 63 //
37f214d5 64 // List functions: see wxChoice
fb49f3b3
DW
65 //
66 inline wxString GetValue(void) const { return GetLabel(); }
67 virtual void SetValue(const wxString& rsValue);
37f214d5 68
fb49f3b3 69 //
37f214d5 70 // Clipboard operations
fb49f3b3 71 //
37f214d5
DW
72 virtual void Copy();
73 virtual void Cut();
74 virtual void Paste();
37f214d5 75
fb49f3b3
DW
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 );
0e320a79 100
37f214d5 101protected:
fb49f3b3
DW
102 virtual void DoSetSize( int nX
103 ,int nY
104 ,int nWidth
105 ,int nHeight
106 ,int nSizeFlags = wxSIZE_AUTO
107 );
108private:
109 DECLARE_DYNAMIC_CLASS(wxComboBox)
110}; // end of CLASS wxComboBox
0e320a79 111
37f214d5 112#endif // wxUSE_COMBOBOX
0e320a79
DW
113#endif
114 // _WX_COMBOBOX_H_