Example #1
0
        private void AutoCompleteBox_VisibleChanged(object sender, EventArgs e)
        {
            if (Visible)
            {
                return;
            }

            timer.Stop();
            tooltip.SetToolTip(this, null);
            tooltip.Hide();
        }
Example #2
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);
            if (lastMouseCoords != e.Location | autocomplete.Visible)
            {
                tooltipTimer.Stop();
                tooltipTimer.Start();
                toolTip.SetToolTip(this, null);
                toolTip.Hide(this);
            }
            lastMouseCoords = e.Location;

            if (IsDrag)
            {
                int iChar = iCharFromPoint(e.Location);
                int iLine = iLineFromPoint(e.Location);
                var caret = CaretPosFromPoint(e.Location);
                SetCaretPos(caret.X, caret.Y);
                Invalidate();
            }
        }