- void Append( const wxString &item );
- void Append( const wxString &item, void* clientData );
- void Append( const wxString &item, wxClientData* clientData );
-
- void SetClientData( int n, void* clientData );
- void* GetClientData( int n );
- void SetClientObject( int n, wxClientData* clientData );
- wxClientData* GetClientObject( int n );
-
- void Clear();
- void Delete( int n );
-
- int FindString( const wxString &item );
- int GetSelection() const;
- wxString GetString( int n ) const;
- wxString GetStringSelection() const;
- int Number() const;
- void SetSelection( int n );
- void SetStringSelection( const wxString &string );
-
- wxString GetValue() const;
- void SetValue(const wxString& value);
-
- void Copy();
- void Cut();
- void Paste();
- void SetInsertionPoint( long pos );
- void SetInsertionPointEnd();
- long GetInsertionPoint() const;
- long GetLastPosition() const;
- void Replace( long from, long to, const wxString& value );
- void Remove( long from, long to );
- void SetSelection( long from, long to );
- void SetEditable( bool editable );
-
- void OnSize( wxSizeEvent &event );
-
-// implementation
+ void Clear();
+ void Delete( int n );
+
+ virtual int FindString( const wxString &item ) const;
+ int GetSelection() const;
+ wxString GetString( int n ) const;
+ wxString GetStringSelection() const;
+ int GetCount() const;
+ int Number() const { return GetCount(); }
+ void SetSelection( int n );
+ void Select( int n ) { return SetSelection( n ); }
+ bool SetStringSelection( const wxString &string );
+ void SetString(int n, const wxString &text);
+
+ wxString GetValue() const;
+ void SetValue(const wxString& value);
+
+ void Copy();
+ void Cut();
+ void Paste();
+ void SetInsertionPoint( long pos );
+ void SetInsertionPointEnd() { SetInsertionPoint( -1 ); }
+ long GetInsertionPoint() const;
+ long GetLastPosition() const;
+ void Remove(long from, long to) { Replace(from, to, wxEmptyString); }
+ void Replace( long from, long to, const wxString& value );
+ void SetSelection( long from, long to );
+ void SetEditable( bool editable );
+
+ // implementation
+
+ virtual void SetFocus();
+
+ void OnSize( wxSizeEvent &event );
+ void OnChar( wxKeyEvent &event );
+
+ bool m_alreadySent;
+ wxList m_clientDataList;
+ wxList m_clientObjectList;
+ int m_prevSelection;
+
+ void DisableEvents();
+ void EnableEvents();
+ GtkWidget* GetConnectWidget();
+ bool IsOwnGtkWindow( GdkWindow *window );
+ void ApplyWidgetStyle();
+
+ wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
+
+ static wxVisualAttributes
+ GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);