The TdxBarConverter unnecessarily deletes the TMainMenu it is to convert. The TMainMenu shouldnt be deleted.
Also, after conversion, the names of the items become MenuItem1, MenuItem2 etc. Why not just place a prefix/suffix before the name of the menu item being converted and use that as the name for the new items?
Eg, TdxBarConvertera TMenuItem named "mnuExitApplication" becomes "mnuExitApplicationCC"
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
TdxBarConverter deletes only those components whose equivalents of ExpressBars were created. Also it tries to preserve the original names of the converted components. There is no way to have 2 components with the same name - that is why converted components must to be deleted.
TdxBarConverter deletes only those components whose equivalents of ExpressBars were created.
Yes, but it should not delete the components. You see, I made a TMainMenu, converted it to a bar, then wanted to add more items to the TMainMenu and convert again. In this case, I have to forcibly make a copy of TMainMenu, delete the MainMenu Bar that the converter created, then run the converter again on the copy of the TMainMenu…cumbersome dont you think?
There is no way to have 2 components with the same name - that is why converted components must to be deleted.
Which is why i suggested having a suffix/prefix property in TdxBarConverter to be appended to the name of the newly created components by TdxBarConverter. Is that difficult to implement?
If TdxBarConverter will allow you to convert again it will create ExpressBars components again for the same TMainMenu items and you will have 2 copies of the same menu items. It was designed to be used for one time application - convert once and then continue the work with ExpressBars not TMainMenu.
Also I don't understand why you need to convert the same TMainMenu several times. Why you cannot add new items to ExpressBars toolbars directly without adding them to TMainMenu and converting to ExpressBars?