示例#1
0
        /// <summary>
        /// Limit mouse over behavior for document objects to just show tooltips.
        /// </summary>
        /// <param name="evt"></param>
        /// <returns></returns>
        /// <remarks>
        /// This is basically to support tooltips, which are more valuable when
        /// the objects are so small.  Other mouse-over behavior, including
        /// hover and changing the cursor, is explicitly avoided, except over
        /// the <see cref="P:Northwoods.Go.GoOverview.OverviewRect" /> and other view objects.
        /// </remarks>
        public override bool DoMouseOver(GoInputEventArgs evt)
        {
            GoObject goObject = base.PickObject(doc: false, view: true, evt.DocPoint, selectableOnly: false);
            bool     flag     = false;

            while (goObject != null)
            {
                if (goObject.OnMouseOver(evt, this))
                {
                    flag = true;
                    break;
                }
                goObject = goObject.Parent;
            }
            if (!flag)
            {
                DoBackgroundMouseOver(evt);
            }
            goObject = base.PickObject(doc: true, view: false, evt.DocPoint, selectableOnly: false);
            DoToolTipObject(goObject);
            return(true);
        }