Example #1
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            mouseover = true;
            FadeScheduler.SetFadeType(overfade, FadeType.In);

            base.OnMouseMove(e);
        }
Example #2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            mousedown = false;
            FadeScheduler.SetFadeType(downfade, FadeType.Out);

            base.OnMouseUp(e);
        }
Example #3
0
        protected override void OnMouseDown(MouseEventArgs e)
        {
            mousedown = true;
            FadeScheduler.SetFadeType(downfade, FadeType.In);

            base.OnMouseDown(e);
        }
Example #4
0
        protected override void OnMouseLeave(EventArgs e)
        {
            mouseover = false;
            FadeScheduler.SetFadeType(overfade, FadeType.Out);

            base.OnMouseLeave(e);
        }
Example #5
0
        protected override void OnMouseLeave(EventArgs e)
        {
            isoverdropdown = false;

            FadeScheduler.SetFadeType(overfadeid, FadeType.Out);

            base.OnMouseLeave(e);
        }
Example #6
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            mseposx = e.X;
            mseposy = e.Y;

            if (elements.NavButtonBack && elements.NavButtonBackRect().Contains(e.Location))
            {
                FadeScheduler.SetFadeType(navbtnbackoverfadeid, FadeType.In);
            }
            else
            {
                FadeScheduler.SetFadeType(navbtnbackoverfadeid, FadeType.Out);
            }

            if (elements.NavButtonForward && elements.NavButtonForwardRect().Contains(e.Location))
            {
                FadeScheduler.SetFadeType(navbtnfwdoverfadeid, FadeType.In);
            }
            else
            {
                FadeScheduler.SetFadeType(navbtnfwdoverfadeid, FadeType.Out);
            }

            hoverindex = -1;

            bool redraw = false;

            int index = 0;

            foreach (ThemeTab tab in parent.TabPages)
            {
                ThemeTab.State original = tab.state;

                tab.state = ThemeTab.State.Normal;

                Rectangle bounds = tab.bounds;
                if (bounds.Contains(e.Location))
                {
                    hoverindex = index;
                    tab.state |= ThemeTab.State.Over;

                    if (mousedown)
                    {
                        tab.state |= ThemeTab.State.Down;
                    }
                }

                if (index == parent.SelectedIndex)
                {
                    tab.state |= ThemeTab.State.Selected;
                }

                redraw = redraw | (original != tab.state);

                if (((original & ThemeTab.State.Over) > 0) && !((tab.state & ThemeTab.State.Over) > 0))
                {
                    FadeScheduler.SetFadeType(tab.overfadeid, FadeType.Out);
                }
                else if (!((original & ThemeTab.State.Over) > 0) && ((tab.state & ThemeTab.State.Over) > 0))
                {
                    FadeScheduler.SetFadeType(tab.overfadeid, FadeType.In);
                }

                index++;
            }

            if (redraw)
            {
                Invalidate();
            }

            base.OnMouseMove(e);
        }
Example #7
0
        protected override void OnMouseEnter(EventArgs e)
        {
            FadeScheduler.SetFadeType(overfadeid, FadeType.In);

            base.OnMouseEnter(e);
        }
Example #8
0
 public void SetDownFadeType(FadeType ft)
 {
     FadeScheduler.SetFadeType(downfadeid, ft);
 }
Example #9
0
 public void SetFadeType(FadeType ft)
 {
     FadeScheduler.SetFadeType(overfadeid, ft);
 }