We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Programmatically create barItem

Hi, I''d like to add a barItem to the main toolbar everytime an instance of the object is created. If multiple instances of the object are created, I''d like to merge the barItem. The object is sorts of like a mdi child but doesn''t have form type. Is this doable with XPMenu? Thanks, Jinlin

1 Reply

AD Administrator Syncfusion Team January 28, 2005 05:35 PM UTC

Hi Jinlin, Unfortunately, our merging implementation is dependent on having MDI Children, so you would need to implement merging yourself. Depending on what you''re trying to do, I would recommend looking into ListBarItem. It allows you to dynamically add BarItems into the list without rearranging the Bars. This would allow you to implement something similar to a Most Recently Used Files List. Also, you could just register more BarItems with the MainFrameBarManager and then add them to the Bars. However, it would take a little work to get the Bar to sort how you want it to. I hope this helps. Please let me know if you need anything else. Regards, Gregory Austin Syncfusion, Inc.

Loader.
Up arrow icon