2008-05-21 George Giolfan <georgegiolfan@yahoo.com>
authorGeorge Giolfan <ggiolfan@mono-cvs.ximian.com>
Wed, 21 May 2008 09:31:08 +0000 (09:31 -0000)
committerGeorge Giolfan <ggiolfan@mono-cvs.ximian.com>
Wed, 21 May 2008 09:31:08 +0000 (09:31 -0000)
* ThemeVisualStyles.cs: Added support for ToolTip transparent background.

svn path=/trunk/mcs/; revision=103650

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeVisualStyles.cs

index fbe48358e42ce92a5a83781d6ef8ea9b72824e2a..5481ff4c31c15d7d5e71983a6c4f007dba36109c 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
+
+       * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
+
 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
 
        * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
index 8e45e9732a4b8eed62c69f25ec4ad96ca232fd82..aa03c9e5b4512dc1b7179110836dd61df485a00d 100644 (file)
@@ -1312,6 +1312,14 @@ namespace System.Windows.Forms
                        }
                        new VisualStyleRenderer (element).DrawBackground (dc, control.Bounds);
                }
+               public override bool ToolTipTransparentBackground {
+                       get {
+                               VisualStyleElement element = VisualStyleElement.ToolTip.Standard.Normal;
+                               if (!VisualStyleRenderer.IsElementDefined (element))
+                                       return base.ToolTipTransparentBackground;
+                               return new VisualStyleRenderer (element).IsBackgroundPartiallyTransparent ();
+                       }
+               }
                #endregion
                #region TreeView
                [MonoTODO("Use the sizing information provided by the VisualStyles API.")]