Fix or add some DoGetBestSize's

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-04-17 02:00:24 +00:00
parent dcc1b6ad4c
commit 7bdfb981a8
5 changed files with 101 additions and 16 deletions

View File

@@ -74,7 +74,10 @@ void wxGauge::DoSetGauge()
wxSize wxGauge::DoGetBestSize() const
{
return wxSize(100, 28);
if (HasFlag(wxGA_HORIZONTAL))
return wxSize(100, 28);
else
return wxSize(28, 100);
}
void wxGauge::SetRange( int range )