Implemented wxButton::DoGetBestSize for wxMotif. Now normal buttons

and default buttons are visually the same size, however, given how
wxMotif draws default buttons, the Widget for a default button is
bigger (8 pixels by default), thus setting default border will
make the Widget grow.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-03-02 10:09:25 +00:00
parent 6b9eeef230
commit 458ca8c1fd
4 changed files with 108 additions and 83 deletions

View File

@@ -50,9 +50,9 @@ public:
static wxSize GetDefaultSize();
// Implementation
virtual void ChangeFont(bool keepOriginalSize = TRUE);
virtual void ChangeBackgroundColour();
virtual void ChangeForegroundColour();
private:
virtual wxSize DoGetBestSize() const;
void SetDefaultShadowThicknessAndResize();
};
#endif