#include "wx/control.h"
-#include "gtk/gtkfeatures.h"
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// wxControl
//-----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxControl,wxWindow)
+IMPLEMENT_DYNAMIC_CLASS(wxControl, wxWindow)
wxControl::wxControl()
{
const wxSize &size,
long style,
const wxString &name )
- : wxWindow( parent, id, pos, size, style, name )
{
+ (void)Create(parent, id, pos, size, style, name);
}
void wxControl::SetLabel( const wxString &label )
}
}
-wxString wxControl::GetLabel(void) const
+wxString wxControl::GetLabel() const
{
return m_label;
}
+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);
+}
+