]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/choice.h
an extra backslash removed
[wxWidgets.git] / include / wx / gtk1 / choice.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: choice.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKCHOICEH__
13#define __GTKCHOICEH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/list.h"
22#include "wx/control.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxChoice;
29
30//-----------------------------------------------------------------------------
31// global data
32//-----------------------------------------------------------------------------
33
34extern const char *wxChoiceNameStr;
35
36//-----------------------------------------------------------------------------
37// wxChoice
38//-----------------------------------------------------------------------------
39
40class wxChoice: public wxControl
41{
42 DECLARE_DYNAMIC_CLASS(wxChoice)
43
44 public:
45
46 wxChoice(void);
6de97a3b
RR
47 inline wxChoice( wxWindow *parent, wxWindowID id,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
c67daf87 50 int n = 0, const wxString choices[] = (const wxString *) NULL,
6de97a3b
RR
51 long style = 0,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxChoiceNameStr )
54 {
55 Create(parent, id, pos, size, n, choices, style, validator, name);
56 }
debe6624 57 bool Create( wxWindow *parent, wxWindowID id,
6de97a3b
RR
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
c67daf87 60 int n = 0, const wxString choices[] = (wxString *) NULL,
6de97a3b
RR
61 long style = 0,
62 const wxValidator& validator = wxDefaultValidator,
63 const wxString& name = wxChoiceNameStr );
c801d85f
KB
64 void Append( const wxString &item );
65 void Clear(void);
2f6407b9 66 void Delete(int n);
c801d85f
KB
67 int FindString( const wxString &string ) const;
68 int GetColumns(void) const;
69 int GetSelection(void);
debe6624 70 wxString GetString( int n ) const;
c801d85f
KB
71 wxString GetStringSelection(void) const;
72 int Number(void) const;
debe6624
JS
73 void SetColumns( int n = 1 );
74 void SetSelection( int n );
c801d85f 75 void SetStringSelection( const wxString &string );
b4071e91 76
868a2826 77 void SetFont( const wxFont &font );
c801d85f
KB
78};
79
80#endif // __GTKCHOICEH__