]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/combobox.h
shows different SetCursor() calls
[wxWidgets.git] / include / wx / msw / combobox.h
CommitLineData
2bda0e17
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: combobox.h
3// Purpose: wxComboBox class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc
JS
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_COMBOBOX_H_
13#define _WX_COMBOBOX_H_
2bda0e17
KB
14
15#ifdef __GNUG__
16#pragma interface "combobox.h"
17#endif
18
19#include "wx/choice.h"
20
47d67540 21#if wxUSE_COMBOBOX
2bda0e17
KB
22
23WXDLLEXPORT_DATA(extern const char*) wxComboBoxNameStr;
24WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
25
26// Combobox item
27class WXDLLEXPORT wxComboBox: public wxChoice
28{
29 DECLARE_DYNAMIC_CLASS(wxComboBox)
30
31 public:
32 inline wxComboBox(void) {}
33
debe6624 34 inline wxComboBox(wxWindow *parent, wxWindowID id,
2bda0e17
KB
35 const wxString& value = wxEmptyString,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
debe6624
JS
38 int n = 0, const wxString choices[] = NULL,
39 long style = 0,
2bda0e17
KB
40 const wxValidator& validator = wxDefaultValidator,
41 const wxString& name = wxComboBoxNameStr)
42 {
43 Create(parent, id, value, pos, size, n, choices, style, validator, name);
44 }
45
debe6624 46 bool Create(wxWindow *parent, wxWindowID id,
2bda0e17
KB
47 const wxString& value = wxEmptyString,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
debe6624
JS
50 int n = 0, const wxString choices[] = NULL,
51 long style = 0,
2bda0e17
KB
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxComboBoxNameStr);
54
55 // List functions: see wxChoice
56
57 // Text field functions
58 virtual wxString GetValue(void) const ;
59 virtual void SetValue(const wxString& value);
60
61 // Clipboard operations
62 virtual void Copy(void);
63 virtual void Cut(void);
64 virtual void Paste(void);
debe6624 65 virtual void SetInsertionPoint(long pos);
2bda0e17
KB
66 virtual void SetInsertionPointEnd(void);
67 virtual long GetInsertionPoint(void) const ;
68 virtual long GetLastPosition(void) const ;
debe6624
JS
69 virtual void Replace(long from, long to, const wxString& value);
70 virtual void Remove(long from, long to);
e8435fa3
JS
71 virtual void SetSelection(int n)
72 {
73 wxChoice::SetSelection(n);
74 }
debe6624
JS
75 virtual void SetSelection(long from, long to);
76 virtual void SetEditable(bool editable);
2bda0e17 77
debe6624 78 virtual bool MSWCommand(WXUINT param, WXWORD id);
2bda0e17
KB
79};
80
47d67540 81#endif // wxUSE_COMBOBOX
2bda0e17 82#endif
bbcdf8bc 83 // _WX_COMBOBOX_H_