X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da9531bf35dcf8a38a2454f72ceb2979664db920..ff1865910312d960737474a75a77737d5ce94864:/utils/framelayout/src/dyntbar.cpp diff --git a/utils/framelayout/src/dyntbar.cpp b/utils/framelayout/src/dyntbar.cpp index e455a5947e..a5019a86c7 100644 --- a/utils/framelayout/src/dyntbar.cpp +++ b/utils/framelayout/src/dyntbar.cpp @@ -67,7 +67,7 @@ wxDynamicToolBar::wxDynamicToolBar(wxWindow *parent, const wxWindowID id, { Create(parent, id, pos, size, style, orientation, RowsOrColumns, name); - SetBackgroundColour( wxColour(192,192,192) ); + SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE) ); } bool wxDynamicToolBar::Create(wxWindow *parent, const wxWindowID id, @@ -82,7 +82,7 @@ bool wxDynamicToolBar::Create(wxWindow *parent, const wxWindowID id, if ( ! wxWindow::Create(parent, id, pos, size, style, name) ) return FALSE; - SetBackgroundColour( wxColour( 192,192,192 ) ); + SetBackgroundColour( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_3DFACE )); return TRUE; } @@ -342,7 +342,7 @@ void wxDynamicToolBar::SizeToolWindows() } } -void wxDynamicToolBar::Layout() +bool wxDynamicToolBar::Layout() { if ( !mpLayoutMan ) mpLayoutMan = CreateDefaulLayout(); @@ -359,6 +359,7 @@ void wxDynamicToolBar::Layout() mpLayoutMan->Layout( wndDim, result, items, mVertGap, mHorizGap );; SizeToolWindows(); + return TRUE; } void wxDynamicToolBar::GetPreferredDim( const wxSize& givenDim, wxSize& prefDim )