Beispiel #1
0
        /// <summary>
        /// Raises the MouseDown event
        /// </summary>
        /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
        public virtual void OnMouseDown(HeaderMouseEventArgs e)
        {
            if (!e.Table.Focused)
            {
                e.Table.Focus();
            }

            this.Bounds = e.HeaderRect;
        }
        /// <summary>
        /// Raises the MouseDown event
        /// </summary>
        /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
        public virtual void OnMouseDown(HeaderMouseEventArgs e)
        {
            if (!e.Table.Focused)
            {
                e.Table.Focus();
            }

            this.Bounds = e.HeaderRect;
        }
Beispiel #3
0
        /// <summary>
        /// Raises the MouseEnter event
        /// </summary>
        /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
        public virtual void OnMouseEnter(HeaderMouseEventArgs e)
        {
            this.Bounds = e.HeaderRect;

            bool tooltipActive = e.Table.ToolTip.Active;

            if (tooltipActive)
            {
                e.Table.ToolTip.Active = false;
            }

            e.Table.ResetMouseEventArgs();

            e.Table.ToolTip.SetToolTip(e.Table, e.Column.ToolTipText);

            if (tooltipActive)
            {
                e.Table.ToolTip.Active = true;
            }
        }
        /// <summary>
        /// Raises the MouseEnter event
        /// </summary>
        /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
        public virtual void OnMouseEnter(HeaderMouseEventArgs e)
        {
            this.Bounds = e.HeaderRect;

            bool tooltipActive = e.Table.ToolTip.Active;

            if (tooltipActive)
            {
                e.Table.ToolTip.Active = false;
            }

            e.Table.ResetMouseEventArgs();

            e.Table.ToolTip.SetToolTip(e.Table, e.Column.ToolTipText);

            if (tooltipActive)
            {
                e.Table.ToolTip.Active = true;
            }
        }
Beispiel #5
0
 /// <summary>
 /// Raises the DoubleClick event
 /// </summary>
 /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
 public virtual void OnDoubleClick(HeaderMouseEventArgs e)
 {
     this.Bounds = e.HeaderRect;
 }
Beispiel #6
0
 /// <summary>
 /// Raises the MouseMove event
 /// </summary>
 /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
 public virtual void OnMouseMove(HeaderMouseEventArgs e)
 {
     this.Bounds = e.HeaderRect;
 }
 /// <summary>
 /// Raises the MouseLeave event
 /// </summary>
 /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
 public virtual void OnMouseLeave(HeaderMouseEventArgs e)
 {
     this.Bounds = e.HeaderRect;
 }
 /// <summary>
 /// Raises the DoubleClick event
 /// </summary>
 /// <param name="e">A HeaderMouseEventArgs that contains the event data</param>
 public virtual void OnDoubleClick(HeaderMouseEventArgs e)
 {
     this.Bounds = e.HeaderRect;
 }