public override bool ConsumeMouseClick(System.Windows.Point mousePoint) { if (bottomEquation.Bounds.Contains(mousePoint)) { ActiveChild = bottomEquation; } else { ActiveChild = mainEquation; } return(ActiveChild.ConsumeMouseClick(mousePoint)); }
public override bool ConsumeMouseClick(System.Windows.Point mousePoint) { if (nthRootEquation.Bounds.Contains(mousePoint)) { ActiveChild = nthRootEquation; } else if (insideEquation.Bounds.Contains(mousePoint)) { ActiveChild = insideEquation; } return(ActiveChild.ConsumeMouseClick(mousePoint)); }
public override bool ConsumeMouseClick(Point mousePoint) { if (mainRowContainer.Bounds.Contains(mousePoint)) { ActiveChild = mainRowContainer; ActiveChild.ConsumeMouseClick(mousePoint); return(true); } else if (bottomRowContainer.Bounds.Contains(mousePoint)) { ActiveChild = bottomRowContainer; ActiveChild.ConsumeMouseClick(mousePoint); return(true); } return(false); }
public override bool ConsumeMouseClick(Point mousePoint) { if (bottomEquation.Bounds.Contains(mousePoint)) { ActiveChild = bottomEquation; ActiveChild.ConsumeMouseClick(mousePoint); return(true); } else if (topEquation.Bounds.Contains(mousePoint)) { ActiveChild = topEquation; ActiveChild.ConsumeMouseClick(mousePoint); return(true); } return(false); }
public override bool ConsumeMouseClick(Point mousePoint) { if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)) { IsSelecting = true; ActiveChild.StartSelection(); ActiveChild.HandleMouseDrag(mousePoint); } else { ActiveChild.ConsumeMouseClick(mousePoint); //never forget, EquationRoot has only one child at all times!! IsSelecting = true; //else DeSelect() might not work! DeSelect(); } AdjustCarets(); return(true); }
public override bool ConsumeMouseClick(Point mousePoint) { bool returnValue = false; if (mainRowContainer.Bounds.Contains(mousePoint)) { ActiveChild = mainRowContainer; returnValue = true; } else if (bottomRow.Bounds.Contains(mousePoint)) { ActiveChild = bottomRow; returnValue = true; } else if (topRow.Bounds.Contains(mousePoint)) { ActiveChild = topRow; returnValue = true; } ActiveChild.ConsumeMouseClick(mousePoint); return(returnValue); }