urgent bugs for commandmanager :(

Bars for Windows Forms Forum

Posted 17 years ago by Dong JIA
Version: 2.0.93
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
if I add a DockableToolBar in BarManager like this:
(e.g.: in some widget's event handler)

DockableToolBar testToolbar = new DockableToolBar("Test");
testToolbar.Active = true;
testToolbar.Text = "Test";
testToolbar.DockTo(DockableToolBarPosition.Top, 1, 1, false);
barManager.DockableToolBars.Add(testToolbar);

and right click on BarContainer, the test has been added and checked. But the new test toolbar is NOT shown. I MUST uncheck and recheck it to make it show. :(

Please help me!! If it can not be fix, my product cann't ship, too. :(

Best regards,
JIA Dong

Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
The toolbar must be added to the BarManager first before it is displayed. Change it to this code:
DockableToolBar testToolbar = new DockableToolBar("Test"); 
barManager.DockableToolBars.Add(testToolbar); 
testToolbar.Text = "Test"; 
testToolbar.DockTo(DockableToolBarPosition.Top, 1, 1, false);


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.