Bug on checkable BarButtonCommand

Docking/MDI for Windows Forms Forum

Posted 17 years ago by Gianni Gardini - Italy
Version: 2.0.76
Environment: Windows XP (32-bit)
Avatar
When you click on a checkable BarButton located on a second level menu branch, the window goes to bottom level.

It seems to me that this was not happening in previous releases.

You can see this in your BarForm project: if you click on Window->MdiStyles->Tabbed, you see a window flickering: Window goes to bottom level, then the action on the barManager_CommandClick bring it back to front: if you do no action, window stay on back.

If you want to exactly duplicate the bug, follow these steps on BarForm.cs:
- create a BarPopupBotton with fullname = "Test.Test" and with checkable options enabled
- add the button to Window->Mdi Style
- add these lines to barManager_CommandClick event:

            if (e.Command.Category == "Test") 
            {
                return;
            }
When you click on the Test Button, the window with the menu goes at bottom level and "ActiPro Launcher" appears.

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks for the repro steps. We've done a lot of tweaking of how focus works for menus in the upcoming release and the changes appear to have resolved this issue.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.