New makefiles for GTK and Motif, using configure but not
libtool and automake. Numerous Motif crash fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,7 +80,17 @@ bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
|
||||
(XtPointer) this);
|
||||
|
||||
SetCanAddEventHandler(TRUE);
|
||||
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
|
||||
|
||||
int x = 0; int y = 0;
|
||||
wxFont new_font( parent->GetFont() );
|
||||
GetTextExtent( label1, &x, &y, (int*)NULL, (int*)NULL, &new_font );
|
||||
|
||||
wxSize newSize = size;
|
||||
if (newSize.x == -1) newSize.x = 30+x;
|
||||
if (newSize.y == -1) newSize.y = 27+y;
|
||||
SetSize( newSize.x, newSize.y );
|
||||
|
||||
AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, newSize.x, newSize.y);
|
||||
|
||||
ChangeBackgroundColour();
|
||||
|
||||
|
Reference in New Issue
Block a user