// Name: choice.h
// Purpose:
// Author: Robert Roebling
-// Created: 01/02/97
-// Id:
-// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Id: $Id$
+// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
public:
wxChoice(void);
- wxChoice( wxWindow *parent, const wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- const int n = 0, const wxString choices[] = NULL,
- const long style = 0, const wxString &name = wxChoiceNameStr );
- bool Create( wxWindow *parent, const wxWindowID id,
- const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
- const int n = 0, const wxString choices[] = NULL,
- const long style = 0, const wxString &name = wxChoiceNameStr );
+ inline wxChoice( wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ int n = 0, const wxString choices[] = (const wxString *) NULL,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxChoiceNameStr )
+ {
+ Create(parent, id, pos, size, n, choices, style, validator, name);
+ }
+ bool Create( wxWindow *parent, wxWindowID id,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ int n = 0, const wxString choices[] = (wxString *) NULL,
+ long style = 0,
+ const wxValidator& validator = wxDefaultValidator,
+ const wxString& name = wxChoiceNameStr );
void Append( const wxString &item );
void Clear(void);
+ void Delete(int n);
int FindString( const wxString &string ) const;
int GetColumns(void) const;
int GetSelection(void);
- wxString GetString( const int n ) const;
+ wxString GetString( int n ) const;
wxString GetStringSelection(void) const;
int Number(void) const;
- void SetColumns( const int n = 1 );
- void SetSelection( const int n );
+ void SetColumns( int n = 1 );
+ void SetSelection( int n );
void SetStringSelection( const wxString &string );
+
+ void SetFont( const wxFont &font );
+ void SetBackgroundColour( const wxColour &colour );
+
};
#endif // __GTKCHOICEH__