X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd9396d52dc2118f2f527ecea55271e79a893ed4..0e1ead0ef2e7eea4cfde028aeb0b293d9f3e258f:/utils/framelayout/src/controlbar.cpp diff --git a/utils/framelayout/src/controlbar.cpp b/utils/framelayout/src/controlbar.cpp index 9dcd33dea2..425e151d9f 100644 --- a/utils/framelayout/src/controlbar.cpp +++ b/utils/framelayout/src/controlbar.cpp @@ -232,11 +232,11 @@ wxFrameLayout::wxFrameLayout(void) : mpFrame ( NULL ), mpFrameClient( NULL ), - mDarkPen ( wxColour(128,128,128), 1, wxSOLID ), - mLightPen ( wxColour(255,255,255), 1, wxSOLID ), - mGrayPen ( wxColour(192,192,192), 1, wxSOLID ), + mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ), + mLightPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ), + mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ), mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ), - mBorderPen( wxColour(192,192,192), 1, wxSOLID ), + mBorderPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ), mpPaneInFocus( NULL ), mpLRUPane ( NULL ), @@ -245,9 +245,9 @@ wxFrameLayout::wxFrameLayout(void) mpTopPlugin ( NULL ), mpCaputesInput( NULL ), - mRecalcPending( TRUE ), mCheckFocusWhenIdle( FALSE ), + mRecalcPending( TRUE ), mClientWndRefreshPending( FALSE ) { CreateCursors(); @@ -264,11 +264,11 @@ wxFrameLayout::wxFrameLayout( wxWindow* pParentFrame, wxWindow* pFrameClient, bo : mpFrame( pParentFrame ), mpFrameClient(pFrameClient), - mDarkPen ( wxColour(128,128,128), 1, wxSOLID ), - mLightPen ( wxColour(255,255,255), 1, wxSOLID ), - mGrayPen ( wxColour(192,192,192), 1, wxSOLID ), + mDarkPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DSHADOW), 1, wxSOLID ), + mLightPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DHILIGHT), 1, wxSOLID ), + mGrayPen ( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ), mBlackPen ( wxColour( 0, 0, 0), 1, wxSOLID ), - mBorderPen( wxColour(192,192,192), 1, wxSOLID ), + mBorderPen( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE), 1, wxSOLID ), mpPaneInFocus( NULL ), mpLRUPane ( NULL ), @@ -301,7 +301,7 @@ wxFrameLayout::wxFrameLayout( wxWindow* pParentFrame, wxWindow* pFrameClient, bo // DBG:: set RED color of frame's background for the // prurpose of tracking engine bugs "visually" - GetParentFrame().SetBackgroundColour( wxColour(192,192,192) ); + GetParentFrame().SetBackgroundColour( wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE) ); } mFloatingOn = CanReparent(); @@ -334,14 +334,14 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent ) if ( pChild->GetParent() ) { - bool success = pChild->GetParent()->GetChildren()->DeleteObject( pChild ); + bool success = pChild->GetParent()->GetChildren().DeleteObject( pChild ); wxASSERT( success ); // DBG:: } ::SetParent( (HWND)pChild->m_hWnd, (HWND)pNewParent->m_hWnd ); - pNewParent->GetChildren()->Append( pChild ); + pNewParent->GetChildren().Append( pChild ); pChild->SetParent( pNewParent ); @@ -354,9 +354,9 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent ) return; - pChild->ReParent( pNewParent ); + //pChild->ReParent( pNewParent ); - return; + //return; #endif wxMessageBox( "Sorry, docking is not supported for ports other than MSW and wxGTK" ); @@ -1563,11 +1563,9 @@ void wxFrameLayout::PushDefaultPlugins() { // FIXME:: to much of the stuff for the default... - AddPlugin( CLASSINFO( cbSimpleCustomizationPlugin ) ); AddPlugin( CLASSINFO( cbRowLayoutPlugin ) ); AddPlugin( CLASSINFO( cbBarDragPlugin ) ); AddPlugin( CLASSINFO( cbPaneDrawPlugin ) ); - AddPlugin( CLASSINFO( cbAntiflickerPlugin ) ); } void wxFrameLayout::AddPlugin( wxClassInfo* pPlInfo, int paneMask )