]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/choice.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKCHOICEH__
13 #define __GTKCHOICEH__
20 #include "wx/object.h"
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const char *wxChoiceNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxChoice
: public wxControl
42 DECLARE_DYNAMIC_CLASS(wxChoice
)
47 wxChoice( wxWindow
*parent
, wxWindowID id
,
48 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
49 int n
= 0, const wxString choices
[] = NULL
,
50 long style
= 0, const wxString
&name
= wxChoiceNameStr
);
51 bool Create( wxWindow
*parent
, wxWindowID id
,
52 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
53 int n
= 0, const wxString choices
[] = NULL
,
54 long style
= 0, const wxString
&name
= wxChoiceNameStr
);
55 void Append( const wxString
&item
);
57 int FindString( const wxString
&string
) const;
58 int GetColumns(void) const;
59 int GetSelection(void);
60 wxString
GetString( int n
) const;
61 wxString
GetStringSelection(void) const;
62 int Number(void) const;
63 void SetColumns( int n
= 1 );
64 void SetSelection( int n
);
65 void SetStringSelection( const wxString
&string
);
68 #endif // __GTKCHOICEH__