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:
Robert Roebling
1999-08-10 20:08:24 +00:00
parent d5b08e7b07
commit 8e877c195b
26 changed files with 2223 additions and 1989 deletions

View File

@@ -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();