Exemple #1
0
 protected virtual void OnTabMouseLeave(TabEventArgs e)
 {
     if (TabMouseLeave != null)
     {
         TabMouseLeave(this, e);
     }
 }
Exemple #2
0
 protected virtual void OnTabMouseEnter(TabEventArgs e)
 {
     if (TabMouseEnter != null)
     {
         TabMouseEnter(this, e);
     }
 }
Exemple #3
0
 protected virtual void OnTabClosed(TabEventArgs e)
 {
     if (TabClosed != null)
     {
         TabClosed(this, e);
     }
 }
Exemple #4
0
        protected virtual void OnTabClosed(TabEventArgs e)
        {
            if (TabClosed != null)
            {
                TabClosed(this, e);
            }

            e.TabPage.CallTabClosed(e);
        }
Exemple #5
0
        protected virtual void OnTabMouseEnter(TabEventArgs e)
        {
            if (TabMouseEnter != null)
            {
                TabMouseEnter(this, e);
            }

            hoverTab = e.TabPage;
            Invalidate(GetTabRect(e.TabPage));

            e.TabPage.CallTabMouseEnter(e);
            Update();
        }
Exemple #6
0
        protected virtual void OnTabMouseLeave(TabEventArgs e)
        {
            if (TabMouseLeave != null)
            {
                TabMouseLeave(this, e);
            }

            if (hoverTab == e.TabPage)
            {
                hoverTab   = null;
                hoverClose = false;
            }
            else
            {
                Debug.WriteLine("Mouse left non-hover tab.");
            }

            Invalidate(GetTabRect(e.TabPage));

            e.TabPage.CallTabMouseLeave(e);
            Update();
        }
Exemple #7
0
 internal void CallTabMouseLeave(TabEventArgs e)
 {
     OnTabMouseLeave(e);
 }
Exemple #8
0
 internal void CallTabMouseEnter(TabEventArgs e)
 {
     OnTabMouseEnter(e);
 }
Exemple #9
0
 internal void CallTabClosed(TabEventArgs e)
 {
     OnTabClosed(e);
 }