summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-21 12:32:58 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-21 12:32:58 +0000
commitd3a7243d06d7a342e4c4646de08061053c3b1618 (patch)
treec90e7b73d36fab666491f0bc8128add88725e5db /vcl/source/control
parent23ca887349f9c378fb38ac100a89009a63902fc6 (diff)
INTEGRATION: CWS vcl33 (1.31.4); FILE MERGED
2005/01/10 14:35:58 pl 1.31.4.2: RESYNC: (1.31-1.32); FILE MERGED 2004/12/08 15:03:37 ssa 1.31.4.1: #i38498# allow parent overwrite (clipmode) only for native pushbuttons
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 789d03c8532c..b0ad0265bcca 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: button.cxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: kz $ $Date: 2005-01-13 17:58:41 $
+ * last change: $Author: kz $ $Date: 2005-01-21 13:32:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -868,25 +868,21 @@ void PushButton::ImplInitSettings( BOOL bFont,
if ( bBackground )
{
- Window* pParent = GetParent();
- if ( (pParent->IsChildTransparentModeEnabled() && !IsControlBackground() )
- || IsNativeControlSupported( CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL ) )
+ SetBackground();
+ // #i38498#: do not check for GetParent()->IsChildTransparentModeEnabled()
+ // otherwise the formcontrol button will be overdrawn due to PARENTCLIPMODE_NOCLIP
+ // for radio and checkbox this is ok as they shoud appear transparent in documents
+ if ( IsNativeControlSupported( CTRL_PUSHBUTTON, PART_ENTIRE_CONTROL ) )
{
EnableChildTransparentMode( TRUE );
SetParentClipMode( PARENTCLIPMODE_NOCLIP );
SetPaintTransparent( TRUE );
- SetBackground();
}
else
{
EnableChildTransparentMode( FALSE );
SetParentClipMode( 0 );
SetPaintTransparent( FALSE );
-
- if ( IsControlBackground() )
- SetBackground( GetControlBackground() );
- else
- SetBackground( pParent->GetBackground() );
}
}
}