src/Misc/EFTools/EntityDesign/UI/Views/Dialogs/NewFunctionImportDialog.cs
// <summary>
//     Display the tooltip if the user hover the mouse on the complex return type controls.
// </summary>
Display the tooltip if the user hover the mouse on the complex return type controls.
Display the tooltip if the user hover the mouse on the complex return type controls .
private void ReturnTypeArea_OnMouseMove(Object sender, MouseEventArgs e)
        {
            var parent = sender as Control;
            if (parent == null)
            {
                return;
            }
            var ctrl = parent.GetChildAtPoint(e.Location);
            if (ctrl == complexTypeReturnButton
                || ctrl == complexTypeReturnComboBox
                || ctrl == createNewComplexTypeButton
                || ctrl == updateComplexTypeButton)
            {
                if (ctrl == _controlWithToolTipShown)
                {
                    return;
                }
                var tipString = _featureDisabledToolTip.GetToolTip(ctrl);
                _featureDisabledToolTip.Show(tipString, ctrl, 2, ctrl.Height + 2);
                _controlWithToolTipShown = ctrl;
            }
            else if (_controlWithToolTipShown != null)
            {
                _featureDisabledToolTip.Hide(_controlWithToolTipShown);
                _controlWithToolTipShown = null;
            }
        }
private void ReturnTypeArea_OnMouseMove ( Object sender , MouseEventArgs e ) { var parent = sender as Control ; if ( parent == null ) { return ; } var ctrl = parent . GetChildAtPoint ( e . Location ) ; if ( ctrl == complexTypeReturnButton || ctrl == complexTypeReturnComboBox || ctrl == createNewComplexTypeButton || ctrl == updateComplexTypeButton ) { if ( ctrl == _controlWithToolTipShown ) { return ; } var tipString = _featureDisabledToolTip . GetToolTip ( ctrl ) ; _featureDisabledToolTip . Show ( tipString , ctrl , 2 , ctrl . Height + 2 ) ; _controlWithToolTipShown = ctrl ; } else if ( _controlWithToolTipShown != null ) { _featureDisabledToolTip . Hide ( _controlWithToolTipShown ) ; _controlWithToolTipShown = null ; } }
Display the tooltip if the user hover the mouse on the complex return type controls.
Display the tooltip if the user hover the mouse on the complex return type controls .
// if the user hover on control where tooltip is shown, just return. // calculate the screen coordinate of the mouse
sender
Object
e
MouseEventArgs