urgent bugs for commandmanager :(

Bars for Windows Forms Forum

Posted 12 years ago by Dong JIA
Version: 2.0.0093
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 12 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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.