diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-19 14:00:27 +0200 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-04-19 14:00:27 +0200 |
commit | f8908f7cb3b4613d5f190c7f0692f13c854f783d (patch) | |
tree | d514335326d8b243690e83cd4f92d6833774c5e5 /svtools/source/toolpanel | |
parent | 0335bd7d3883fa2fd7127ad70a2820c269efb9e3 (diff) |
slidecopy: proper Z-Order for the single drawers, so TABbing works as expected
Diffstat (limited to 'svtools/source/toolpanel')
-rw-r--r-- | svtools/source/toolpanel/drawerlayouter.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
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 ); |