/// <summary>
        /// When the mouse moves over one of the items of the combobox dropdown, we display a tooltip on the right of the dropdown.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="DropDownMouseMoveEventArgs"/> instance containing the event data.</param>
        private void combo_DropDownMouseMove(object sender, DropDownMouseMoveEventArgs e)
        {
            Implant implant = e.Item as Implant;
            if (implant == null)
                return;

            Control control = (Control)sender;
            Point point = new Point(control.ClientRectangle.Right + 20, control.ClientRectangle.Top);

            m_fakeToolTip.Location = control.PointToScreen(point);
            m_fakeToolTip.Implant = implant;
            m_fakeToolTip.ShowInactiveTopmost();
        }
Exemple #2
0
 /// <summary>
 /// When the mouse moves over a drop down item, we fire the event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="DropDownMouseMoveEventArgs"/> instance containing the event data.</param>
 private void listBox_DropDownMouseMove(object sender, DropDownMouseMoveEventArgs e)
 {
     DropDownMouseMove?.ThreadSafeInvoke(sender, e);
 }