I do. It is simpler to add the menus to the menubar and then add the
menubar to the top level widget. Instead of, as you suggest, both add
the menus first to the menubar, then to the top level widget and finally
add the menubar to the top level widget. For me it is confusing and more
work.

Have I still misunderstood it?

Kent

On Wed, 2006-01-04 at 12:40 +0100, Sebastian Werner wrote:
> Kent Olsson schrieb:
> > I think it is illogical when it is necessary both to add the menus
> > QxMenu to the this.getClientWindow().getClientDocument() one by one. I
> > think it would be nicer to add the QxMenuBar, where all the menus have
> > been added to before.
> 
> another misunderstanding. You "assign" the menus to any menubarbutton or 
> menubutton, but you don't "add" them. Afterwards you need to add the 
> menus to the top level widget (most times the client document) of your 
> application. I don't see there this is illogical.
> 
> Sebastian
> 
> 
> > 
> > What do you say Sebastian? Can it be redirected then this step is not
> > needed:
> > 
> > doc.add(fileM, editM, viewM, actionM, toolsM, searchM, helpM);
> > menuMB.add(actionMBB, mailMBB, editMBB, viewMBB, actionMBB, toolsMBB, 
> > searchMBB, helpMBB);
> > 
> > instead you can do:
> > 
> > menuMB.add(actionMBB, mailMBB, editMBB, viewMBB, actionMBB, toolsMBB, 
> > searchMBB, helpMBB);
> > doc.add(menuMB);
> > 
> > which would be more logical.
> > 
> > Kent
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to