Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#13 StartMenuButtons enlarging on mouse_over like on Mac OS X?

open
6
2008-10-23
2008-10-22
Erio
No

Hi,

Maybe you can extend your new Start Menu so that StartMenuButtons enlarge while moving the mouse over like on the Macintosh? I think this could look good even with buttons with rectangle borders like your StartMenuButtons.

Bye,
Erio

Discussion

  • SubsonicDesign
    SubsonicDesign
    2008-10-23

    • labels: --> Interface Improvements (example)
    • milestone: --> Next Release (example)
    • priority: 5 --> 6
     
  • SubsonicDesign
    SubsonicDesign
    2008-10-23

    It would be one hell of a feature! I'll try that as soon as I get home!! :D Nice thinking!

     
  • SubsonicDesign
    SubsonicDesign
    2008-10-23

    • assigned_to: nobody --> dudedesign
     
  • mn_progr
    mn_progr
    2009-03-24

    Here is our proposed new feature to enlarge the Start Menu Button based on a Multiplier in the public properties.

    //<under properties>
    double Multiplier_Down = 1.0;
    int StartHeight;
    int StartWidth;

    [Description("The Multiplier to increase the button size on Mouse over.")]
    [Browsable(true)]
    public double Multiplier
    {
    get
    {
    return this.Multiplier_Down;
    }

    set
    {
    this.Multiplier_Down = value;
    createDrawingTools();
    this.Invalidate();
    }
    }

    //<under events>
    private void CloudStartMenuButton_MouseEnter(object sender, EventArgs e)
    {
    if (isAnimated == true)
    {
    isOpacityIncreasing = true;
    timer1.Start();
    }
    isMouseHovering = true;
    StartWidth = this.Width;
    StartHeight = this.Height;

    this.Width = (int)(this.Width * Multiplier_Down);
    this.Height = (int)(this.Height * Multiplier_Down);
    this.Invalidate();
    }

    private void CloudStartMenuButton_MouseLeave(object sender, EventArgs e)
    {
    if (isAnimated == true)
    {
    isOpacityIncreasing = false;
    timer1.Start();
    }

    else
    {
    isMouseHovering = false;
    this.Invalidate();
    }
    isMouseLeaved = true;

    this.Width = StartWidth;
    this.Height = StartHeight;
    this.Invalidate();
    }

     
  • Just to give you a little more information on the feature addon code listed in our previous comment. The Multiplier is used to enlarge the button by the amount entered in the Multiplier property times the height and width of the button size. This occurs on the mouse enter event. When the mouse leave event is triggered the size property are set back to the original size of the button.

     
  • SubsonicDesign
    SubsonicDesign
    2009-03-24

    Thanks for your work guys! I'll run a few tests tommorow and include the feature in the next release. I've been creating some new features too so the new version will come out soon.

    Timo

     
  • SubsonicDesign
    SubsonicDesign
    2009-03-24

    I'll test it today