Posted 16 years ago
by MaxGrigorev
I am using run-time customization toolbars from UIStudio v2.0.0100 for Windows Forms.
I have found the following bug with use LoadBarLayoutFromFile\SaveBarLayoutToFile functions.
The condition of invisibility for menu elements is incorrectly restored at use of function LoadBarLayoutFromFile.
1. During program execution I delete through customize dialog some menu elements.
2. I cause function SaveBarLayoutToFile with a flag isComplete(differential layout) established in false.
3. I close the my application.
In xml a file all changed options remain correctly.
File piece:
</DockedStateInfo>
<CommandLinks>
<CommandLink Action="Update" Index="0" Command="Menu Bar.File">
<CommandLinks>
<CommandLink Action="Remove" Index="1" Command="File.Open" />
<CommandLink Action="Remove" Index="0" Command="File.New" />
</CommandLinks>
</CommandLink>
</CommandLinks>
5. I start the program and I cause LoadBarLayoutFromFile for this file.
6. The first element(commandlink for menu Command = "File. Open") of the menu will not be displayed only.
Nevertheless the second element of the menu((commandlink for menu Command = "File. New") ) will be displayed.
Despite tag "action=remove" in xml a file.
7. If to use SaveBarLayoutToFile with parameter isComplete established in true the invisible state of all elements of the menu will be correctly restored.
[Modified at 12/16/2008 05:30 AM]
I have found the following bug with use LoadBarLayoutFromFile\SaveBarLayoutToFile functions.
The condition of invisibility for menu elements is incorrectly restored at use of function LoadBarLayoutFromFile.
1. During program execution I delete through customize dialog some menu elements.
2. I cause function SaveBarLayoutToFile with a flag isComplete(differential layout) established in false.
3. I close the my application.
In xml a file all changed options remain correctly.
File piece:
</DockedStateInfo>
<CommandLinks>
<CommandLink Action="Update" Index="0" Command="Menu Bar.File">
<CommandLinks>
<CommandLink Action="Remove" Index="1" Command="File.Open" />
<CommandLink Action="Remove" Index="0" Command="File.New" />
</CommandLinks>
</CommandLink>
</CommandLinks>
5. I start the program and I cause LoadBarLayoutFromFile for this file.
6. The first element(commandlink for menu Command = "File. Open") of the menu will not be displayed only.
Nevertheless the second element of the menu((commandlink for menu Command = "File. New") ) will be displayed.
Despite tag "action=remove" in xml a file.
7. If to use SaveBarLayoutToFile with parameter isComplete established in true the invisible state of all elements of the menu will be correctly restored.
[Modified at 12/16/2008 05:30 AM]