Supress SetFocus() warning in wxVListBoxComboPopup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,6 +80,7 @@ public:
|
|||||||
// required virtuals
|
// required virtuals
|
||||||
virtual void Init();
|
virtual void Init();
|
||||||
virtual bool Create(wxWindow* parent);
|
virtual bool Create(wxWindow* parent);
|
||||||
|
virtual void SetFocus();
|
||||||
virtual wxWindow *GetControl() { return this; }
|
virtual wxWindow *GetControl() { return this; }
|
||||||
virtual void SetStringValue( const wxString& value );
|
virtual void SetStringValue( const wxString& value );
|
||||||
virtual wxString GetStringValue() const;
|
virtual wxString GetStringValue() const;
|
||||||
|
@@ -96,6 +96,18 @@ wxVListBoxComboPopup::~wxVListBoxComboPopup()
|
|||||||
Clear();
|
Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxVListBoxComboPopup::SetFocus()
|
||||||
|
{
|
||||||
|
// Suppress SetFocus() warning by simply not calling it. This combo popup
|
||||||
|
// has already been designed with the assumption that SetFocus() may not
|
||||||
|
// do anything useful, so it really doesn't need to be called.
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
//
|
||||||
|
#else
|
||||||
|
wxVListBox::SetFocus();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool wxVListBoxComboPopup::LazyCreate()
|
bool wxVListBoxComboPopup::LazyCreate()
|
||||||
{
|
{
|
||||||
// NB: There is a bug with wxVListBox that can be avoided by creating
|
// NB: There is a bug with wxVListBox that can be avoided by creating
|
||||||
|
Reference in New Issue
Block a user