ComponentFactory.Krypton.Ribbon.GalleryButtonController.UpdateTargetState C# (CSharp) Method

UpdateTargetState() protected method

Set the correct visual state of the target.
protected UpdateTargetState ( Control c ) : void
c Control Owning control.
return void
        protected void UpdateTargetState(Control c)
        {
            // Check we have a valid control to convert coordinates against
            if ((c != null) && !c.IsDisposed)
            {
                // Ensure control is inside a visible top level form
                Form f = c.FindForm();
                if ((f != null) && f.Visible)
                {
                    UpdateTargetState(c.PointToClient(Control.MousePosition));
                    return;
                }
            }

            UpdateTargetState(new Point(int.MaxValue, int.MaxValue));
        }

Same methods

GalleryButtonController::UpdateTargetState ( Point pt ) : void