// Modified by:
// Created: 30.08.00
// RCS-ID: $Id$
-// Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
+// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_UNIV_COMBOBOX_H_
#define _WX_UNIV_COMBOBOX_H_
-#ifdef __GNUG__
- #pragma implementation "univcombobox.h"
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
+ #pragma interface "univcombobox.h"
#endif
class WXDLLEXPORT wxComboControl;
// called immediately after the control is shown
virtual void OnShow() = 0;
+ virtual wxCoord GetBestWidth() const {return 0; }
+
protected:
wxComboControl *m_combo;
};
virtual bool Enable(bool enable = TRUE);
virtual bool Show(bool show = TRUE);
+#if wxUSE_TOOLTIPS
+ virtual void DoSetToolTip( wxToolTip *tip );
+#endif // wxUSE_TOOLTIPS
+
protected:
// override the base class virtuals involved into geometry calculations
virtual wxSize DoGetBestClientSize() const;
const wxString& strArg = wxEmptyString);
// event handlers
- void OnKey(wxCommandEvent& event);
+ void OnKey(wxKeyEvent& event);
// common part of all ctors
void Init();
virtual int GetSelection() const;
void SetSelection(int n) { Select(n); }
+ void SetStringSelection(const wxString& WXUNUSED(s)) { }
+
+ wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST
+
protected:
virtual int DoAppend(const wxString& item);
+ virtual int DoInsert(const wxString& item, int pos);
virtual void DoSetItemClientData(int n, void* clientData);
virtual void* DoGetItemClientData(int n) const;
virtual void DoSetItemClientObject(int n, wxClientData* clientData);
public:
wxStdComboBoxInputHandler(wxInputHandler *inphand);
- virtual bool HandleKey(wxControl *control,
+ virtual bool HandleKey(wxInputConsumer *consumer,
const wxKeyEvent& event,
bool pressed);
};