aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/PrivateContainer.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-15 15:39:16 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-15 15:39:16 +0100
commit0bba9f0c7fb86e3af67f7ce8a0f42f87b914976c (patch)
tree2dec4541ef1dc2c37baf99da77dd088a15d04826 /src/GraphicObjects/PrivateContainer.cs
parent1a1b87d5505bd98321dfcab4fb00da3ee5767a1c (diff)
Added Hoverable prop to GraphicObject, still have problem in tabview when hover another tab, content is also hover
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
-rw-r--r--src/GraphicObjects/PrivateContainer.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs
index 5a680da0..7bc62cb8 100644
--- a/src/GraphicObjects/PrivateContainer.cs
+++ b/src/GraphicObjects/PrivateContainer.cs
@@ -225,12 +225,18 @@ namespace Crow
#endregion
#region Mouse handling
+ public override bool MouseIsIn (Point m)
+ {
+ if (Hoverable || child == null)
+ return base.MouseIsIn (m);
+ return child.MouseIsIn (m);
+ }
public override void checkHoverWidget (MouseMoveEventArgs e)
{
base.checkHoverWidget (e);
if (child != null)
- if (child.MouseIsIn (e.Position))
- child.checkHoverWidget (e);
+ if (child.MouseIsIn (e.Position))
+ child.checkHoverWidget (e);
}
#endregion