diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-17 03:18:23 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-02-17 03:18:23 +0100 |
| commit | ab3c36232c019393f2555aaa617e09f5d6f1ef2e (patch) | |
| tree | 031c92621e76c38da187cd5f3c2d91e1bf113f34 /src/Interface.cs | |
| parent | fbfd6dfc48f855b26d3f705c676451ba0f260819 (diff) | |
focusParent
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index b044e132..c573164f 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -90,7 +90,7 @@ namespace Crow FontRenderingOptions = new FontOptions (); FontRenderingOptions.Antialias = Antialias.Subpixel; FontRenderingOptions.HintMetrics = HintMetrics.On; - FontRenderingOptions.HintStyle = HintStyle.Medium; + FontRenderingOptions.HintStyle = HintStyle.Full; FontRenderingOptions.SubpixelOrder = SubpixelOrder.Rgb; } public Interface(){ @@ -822,11 +822,11 @@ namespace Crow if (idxhw != 0) { int i = 0; while (i < idxhw) { - if (GraphicTree [i].localLogicalParentIsNull) { + if (!GraphicTree [i].isPopup) { if (GraphicTree [i].MouseIsIn (e.Position)) { while (HoverWidget != null) { HoverWidget.onMouseLeave (HoverWidget, e); - HoverWidget = HoverWidget.LogicalParent as GraphicObject; + HoverWidget = HoverWidget.focusParent; } GraphicTree [i].checkHoverWidget (e); @@ -845,8 +845,8 @@ namespace Crow } else { HoverWidget.onMouseLeave (HoverWidget, e); //seek upward from last focused graph obj's - while (HoverWidget.LogicalParent as GraphicObject != null) { - HoverWidget = HoverWidget.LogicalParent as GraphicObject; + while (HoverWidget.focusParent != null) { + HoverWidget = HoverWidget.focusParent; if (HoverWidget.MouseIsIn (e.Position)) { HoverWidget.checkHoverWidget (e); HoverWidget.onMouseMove (this, e); @@ -1048,7 +1048,8 @@ namespace Crow this.AddWidget (ctxMenuContainer); else ctxMenuContainer.IsOpened = true; - + + ctxMenuContainer.isPopup = true; ctxMenuContainer.LogicalParent = go; ctxMenuContainer.DataSource = go; |