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