wxWindow::GetBestSize() added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
#include "wx/control.h"
|
||||
|
||||
#include "gtk/gtkfeatures.h"
|
||||
#include "gtk/gtk.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// wxControl
|
||||
@@ -58,3 +58,12 @@ wxString wxControl::GetLabel() const
|
||||
}
|
||||
|
||||
|
||||
wxSize wxControl::DoGetBestSize() const
|
||||
{
|
||||
GtkRequisition req;
|
||||
(* GTK_WIDGET_CLASS( GTK_OBJECT(m_widget)->klass )->size_request )
|
||||
(m_widget, &req );
|
||||
|
||||
return wxSize(req.width, req.height);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user