From f8908f7cb3b4613d5f190c7f0692f13c854f783d Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Mon, 19 Apr 2010 14:00:27 +0200 Subject: slidecopy: proper Z-Order for the single drawers, so TABbing works as expected --- svtools/source/toolpanel/drawerlayouter.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'svtools/source/toolpanel') diff --git a/svtools/source/toolpanel/drawerlayouter.cxx b/svtools/source/toolpanel/drawerlayouter.cxx index 2d73a5d1c0b9..dd7298bf61e0 100644 --- a/svtools/source/toolpanel/drawerlayouter.cxx +++ b/svtools/source/toolpanel/drawerlayouter.cxx @@ -165,6 +165,17 @@ namespace svt OSL_PRECOND( i_nPosition <= m_aDrawers.size(), "DrawerDeckLayouter::PanelInserted: inconsistency!" ); PToolPanelDrawer pDrawer( new ToolPanelDrawer( m_rParentWindow, i_pPanel->GetDisplayName() ) ); + // proper Z-Order + if ( i_nPosition == 0 ) + { + pDrawer->SetZOrder( NULL, WINDOW_ZORDER_FIRST ); + } + else + { + const PToolPanelDrawer pFirstDrawer( m_aDrawers[ i_nPosition - 1 ] ); + pDrawer->SetZOrder( pFirstDrawer.get(), WINDOW_ZORDER_BEHIND ); + } + pDrawer->Show(); pDrawer->AddEventListener( LINK( this, DrawerDeckLayouter, OnWindowEvent ) ); m_aDrawers.insert( m_aDrawers.begin() + i_nPosition, pDrawer ); -- cgit