XtFree ((char *) ptr);
}
- SetInitialBestSize(wxSize(width, height));
-
- if (x != -1 || y != -1)
- {
- if (x == -1)
- x = 0;
- if (y == -1)
- y = 0;
- Move(x, y);
- }
+ if (x == -1)
+ x = 0;
+ if (y == -1)
+ y = 0;
+ DoSetSize (x, y, width, height, wxSIZE_USE_EXISTING);
return true;
}
WXWidget mainWidget = GetMainWidget();
if ( mainWidget )
wxDoChangeBackgroundColour(mainWidget, m_backgroundColour);
+ if ( m_scrolledWindow && mainWidget != m_scrolledWindow )
+ wxDoChangeForegroundColour(m_scrolledWindow, m_backgroundColour);
}
void wxWindow::ChangeForegroundColour()