// Purpose: wxBitmapComboBox
// Author: Jaakko Salli
// Created: 2008-05-19
-// RCS-ID: $Id:
+// RCS-ID: $Id$
// Copyright: (c) 2008 Jaakko Salli
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
return wxChoice::GTKGetWindow(windows);
}
+wxSize wxBitmapComboBox::DoGetBestSize() const
+{
+ wxSize best = wxComboBox::DoGetBestSize();
+
+ int delta = GetBitmapSize().y - GetCharHeight();
+ if ( delta > 0 )
+ {
+ best.y += delta;
+ CacheBestSize(best);
+ }
+ return best;
+}
+
// ----------------------------------------------------------------------------
// Item manipulation
// ----------------------------------------------------------------------------
{
if ( GetEntry() )
wxComboBox::WriteText(value);
+ else
+ SetStringSelection(value);
}
wxString wxBitmapComboBox::GetValue() const