shizhoubo[OOoFrm] wrote: > > Mathias Bauer ??: >> Carsten Driesner wrote: >> >> >>> shizhoubo[OOoFrm] schrieb: >>> >>>> Hi Carsten, >>>> >>>> We have a special requirement which we plan to transplant OOo to UMPC. >>>> as the UMPC's screen is small, so we will implement MenuBar like ToolBar >>>> for example it can freely dock at the top ,left,right or bottom. >>>> Can it be implemented? If yes how difficult may it be? >>>> >>>> >>> Hi Shi Zhoubo, >>> >>> I think it's possible to do it but it would need some time to extend the >>> toolbar code to display the content as a menu bar. A toolbar normally >>> has no recursive structure, means that it has just one level of >>> functions. A menu bar contains several levels of functions placed in >>> sub-menus. So the internal structure of the toolbar must be enhanced to >>> reach your goal. Therefore I think that this enhancement is not easy to >>> implement. >>> >> >> I wonder whether this really must be a new, recursive implementation. >> We already have toolbar controllers that can open menus. Wouldn't it be >> possible to have a toolbar filled with such controllers so that this >> toolbar is comparable to a menu bar? >> >> Ciao, >> Mathias >> >> > Thanks your helps. > you are right , the MenuBar doesnt must be a new , all item of > original MenuBar has retained. > I think MenuBar can freely dock and float, Can it be implemented? If we followed my idea to implement the menubar as a toolbar, the menubarmanager implementation needs to be changed accordingly. It would create a toolbar instead of a menu bar (and register this toolbar at the layoutmanager) and each top level popup would become a drop down button in this toolbar. The content from the drop down lists must be created from the menubar.xml. It is possible that the necessary code in VCL to allow to have drop down buttons does not exist anymore since OOo2.0 but basically it's doable.
The whole API of the menubarmanager should stay unchanged so that noone outside of its implementation would notice the difference. I'm sure that you would find some nasty details if you tried to implement that but basically that is a possible way (IMHO). Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]