Esempio n. 1
0
        private void HandleMouseInTitle(MouseEventArgs e)
        {
            TabControlItem item = this.GetTabItemByPoint(e.Location);

            if (item != null)
            {
                var inTitle = item.LocationIsInTitle(e.Location);
                TabControlMouseOnTitleEventArgs args = new TabControlMouseOnTitleEventArgs(item);

                if (inTitle)
                {
                    this.OnTabControlMouseOnTitle(args);

                    if (!this.mouseEnteredTitle)
                    {
                        this.mouseEnteredTitle = true;
                        this.OnTabControlMouseEnteredTitle(args);
                    }
                }
                else if (this.mouseEnteredTitle)
                {
                    this.mouseEnteredTitle = false;
                    this.OnTabControlMouseLeftTitle(args);
                }
            }
        }
Esempio n. 2
0
 private void OnTabControlMouseLeftTitle(TabControlMouseOnTitleEventArgs e)
 {
     if (this.TabControlMouseLeftTitle != null)
     {
         this.TabControlMouseLeftTitle(e);
     }
 }
Esempio n. 3
0
        private void HandleMouseInTitle(MouseEventArgs e)
        {
            TabControlItem item = this.GetTabItemByPoint(e.Location);

            if (item != null)
            {
                var inTitle = item.LocationIsInTitle(e.Location);
                TabControlMouseOnTitleEventArgs args = new TabControlMouseOnTitleEventArgs(item);

                if (inTitle)
                {
                    this.OnTabControlMouseOnTitle(args);

                    if (!this.mouseEnteredTitle)
                    {
                        this.mouseEnteredTitle = true;
                        this.OnTabControlMouseEnteredTitle(args);
                    }
                }
                else if (this.mouseEnteredTitle)
                {
                    this.mouseEnteredTitle = false;
                    this.OnTabControlMouseLeftTitle(args);
                }
            }
        }
Esempio n. 4
0
 private void OnTabControlMouseLeftTitle(TabControlMouseOnTitleEventArgs e)
 {
     if (this.TabControlMouseLeftTitle != null)
     {
         this.TabControlMouseLeftTitle(e);
     }
 }