AutoUpdateCheckGroups doesn't work after Toolbar.Merge

Bars for Windows Forms Forum

Posted 18 years ago by Gianni Gardini - Italy
Avatar
Version: 2.0.0072

In WindowsApplication1, create a Toolbar "Custom 1" with some checkable Commands, all with the same CheckGroupName and save layout to xml.

Case 1
In WindowsApplication2, load the toolbar "Custom 1" in a barManager.
It works: if you click on a menuItem, it appears as checked

Case 2
In WindowsApplication2, create a Toolbar "Custom 1" and then merge the toolbar "Custom 1" from WindowsApplication1.
It doesn't work: items are not checkable, but I saved then checkable.


You can try that in your TestApplication, class BarForm.cs.
- Create a Toolbar "Custom 1" and add "Renderer" Command
- Change CommandLink to MergeAction = Append
- Save to file as "C:\save.xml".
- Add the following code to Load event:

private void BarForm_Load(object sender, System.EventArgs e)
{
   BarManager bm = new BarManager();
   bm.HostContainerControl = new Form();
   bm.LoadBarLayoutFromFile(@"C:\save.xml");
   BarManager.Merge(bm.DockableToolBars["Custom 1"], barManager.DockableToolBars["Options"], false);
}
When you run the application, in the "Options" toolbar you'll have two Renderer list, one checkable and one not checkable.

Comments (3)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Gianni,

Since you already have the project set up to reproduce this, could you ZIP it up and email it over to us? Thanks!


Actipro Software Support

Posted 18 years ago by Gianni Gardini - Italy
Avatar
Sent to:
Support@ActiproSoftware.com
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks, this is now fixed for the next maintenance release.


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.