summaryrefslogtreecommitdiff
path: root/svtools/source/toolpanel/paneltabbar.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-03-10 12:08:45 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-03-10 12:08:45 +0100
commited4a0ba889495ce4841b766ce8ee272479a9d44a (patch)
tree0ea475be6904d9c05cf4b8243cc9482dd3f66fcf /svtools/source/toolpanel/paneltabbar.cxx
parent3fadb0a93d43c6cfa59da7ac322cde2ca23f4c8d (diff)
slidecopy: for toolbox items, CTRL_STATE_PRESSED is needed in case of ITEM_STATE_FOCUSED
Diffstat (limited to 'svtools/source/toolpanel/paneltabbar.cxx')
-rw-r--r--svtools/source/toolpanel/paneltabbar.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx
index aa83274ee3b9..894c53d16db4 100644
--- a/svtools/source/toolpanel/paneltabbar.cxx
+++ b/svtools/source/toolpanel/paneltabbar.cxx
@@ -67,7 +67,7 @@ namespace svt
ControlState lcl_ItemToControlState( const ItemFlags i_nItemFlags )
{
ControlState nState = CTRL_STATE_ENABLED;
- if ( i_nItemFlags & ITEM_STATE_FOCUSED ) nState |= CTRL_STATE_FOCUSED;
+ if ( i_nItemFlags & ITEM_STATE_FOCUSED ) nState |= CTRL_STATE_FOCUSED | CTRL_STATE_PRESSED;
if ( i_nItemFlags & ITEM_STATE_HOVERED ) nState |= CTRL_STATE_ROLLOVER;
if ( i_nItemFlags & ITEM_STATE_ACTIVE ) nState |= CTRL_STATE_SELECTED;
return nState;
@@ -527,7 +527,6 @@ namespace svt
m_pRenderer.reset( new VCLItemRenderer( m_aRenderDevice ) );
m_aRenderDevice.SetLineColor();
- //m_aRenderDevice.SetFillColor( m_rTabBar.GetSettings().GetStyleSettings().GetDialogColor() );
m_rPanelDeck.AddListener( *this );
@@ -1220,7 +1219,6 @@ namespace svt
&& ( ( i_rDataChanedEvent.GetFlags() & SETTINGS_STYLE ) != 0 )
)
{
- //SetFillColor( GetSettings().GetStyleSettings().GetDialogColor() );
Invalidate();
}
}