This is a migrated thread and some comments may be shown as answers.

Start Menu Items and their click events

1 Answer 92 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Robert LeGood
Top achievements
Rank 1
Robert LeGood asked on 01 Feb 2013, 11:20 PM
Hi all,

A very annoying issue that I hope I can get some help on.   When I create Start Menu items and respond to their click events, if I have breakpoints in my code, the start menu sits on top of VS.

Not a huge issue, except that it sits over most of the menu items, so if there's a crash, I can't hit the button to force the app to stop.

Is there a way to force the start menu to close *before* it executes the event?

Thanks!

Rob.

1 Answer, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 06 Feb 2013, 05:54 PM
Hello Robert,

Thank you for contacting us.

The popup is remaining visible because there is a fade animation when it is closed and when you hit a break point, the animation has not yet been finished. To overcome the issue, you can disable the animations of the application menu:

public Form1()
{
    InitializeComponent();
    this.radApplicationMenu1.DropDownButtonElement.DropDownMenu.AnimationEnabled = false;
}

Assuming that you would only need to disable the animations when the application is in debug mode, you can surround this setting with #if DEBUG directive.

I hope I was able to help. If you have any additional questions, feel free to ask.

Greetings,
Ivan Todorov
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
RibbonBar
Asked by
Robert LeGood
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Share this question
or