示例#1
0
        // /////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Base method draws each of the controls, and the tooltip if applicable.
        /// </summary>
        protected internal override void OnDraw()
        {
            base.OnDraw();

            // propagate Draw message to all children
            foreach (Control c in ControlList)
            {
                c.OnDraw();
            }

            if (CurrentTooltip != null)
            {
                CurrentTooltip.DrawToScreen();
            }
        }
示例#2
0
        /// <summary>
        /// Base method propagates messages to children controls and managers.  Override to
        /// add custom handling.
        /// </summary>
        protected internal override void OnMouseHoverEnd(MouseData mouseData)
        {
            if (CurrentTooltip != null)
            {
                CurrentTooltip.Dispose();
                CurrentTooltip = null;
            }

            base.OnMouseHoverEnd(mouseData);

            foreach (Manager m in managerList)
            {
                m.OnMouseHoverEnd(mouseData);
            }

            if (CurrentUnderMouse != null && CurrentUnderMouse.IsActive)
            {
                CurrentUnderMouse.OnMouseHoverEnd(mouseData);
            }
        }
示例#3
0
        /// <summary>
        /// Base method draws each of the controls, and the tooltip if applicable.
        /// </summary>
        protected internal override void OnDraw()
        {
            if (WindowState == WindowState.Hidden || WindowState == WindowState.Quitting)
            {
                return;
            }

            base.OnDraw();

            // propagate Draw message to all children
            foreach (Control c in ControlList)
            {
                c.OnDraw();
            }

            if (CurrentTooltip != null)
            {
                CurrentTooltip.DrawToScreen();
            }
        }