In the XPToolbar
can load parent elements using MainframeBarManager and child elements using
ChildframeBarManager. By default, XPToolbar
provides support to hide the elements inside the toolbar and it can be achieved
by unchecking the items in context menu which appears on right-click. Also user can
maintain the current state of toolbar items whenever closing the application.
In this case, hidden state of child toolbar items is not maintained properly
when re-launching the application. On the
other hand, user can maintain the hidden state of
parent toolbar items as expected.