[Iup-users] Dynamically modified menus
Antonio Scuri
scuri at tecgraf.puc-rio.br
Sun Oct 7 18:31:42 GMT+3 2007
Menus will not work inside frames. You can create only a menu for a dialog
or to popup the menu.
Best,
scuri
PS: Maybe you did a simple "Reply" instead of a "Reply to All". I will check
if there is something to configure in the mailing list options.
> -----Original Message-----
> From: iup-users-bounces at lists.luaforge.net
> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of Merick
> Sent: domingo, 7 de outubro de 2007 18:27
> To: iup-users at lists.luaforge.net
> Subject: Re: [Iup-users] Dynamically modified menus
>
> hmm... I already made a reply to this, but when I just
> checked it it seems that the reply went straight to the op
> instead of to the list....
>
> Anyway, I haven't tried this (no need to yet) but my idea for
> a solution to this is to create several different menus, put
> them in frames inside a zbox, then bring the correct menu to
> the top of the zbox when loading the document
>
> Antonio Scuri wrote:
> > IUP 2.x has a serious limitation on appending new controls
> to already
> > mapped containers like popup menus or dialogs.
> >
> > You can only dynamically create menus before they are
> mapped to the
> > native system.
> >
> > IUP 3 will not have that limitation.
> >
> > For now users implement different approaches to workaround
> that limitation.
> > A very simple one is just to change the title of existing
> menu items
> > and disable the extra menu items that are not used.
> >
> > Best,
> > scuri
> >
> >
> >> -----Original Message-----
> >> From: iup-users-bounces at lists.luaforge.net
> >> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of Otfried
> >> Cheong
> >> Sent: domingo, 7 de outubro de 2007 12:19
> >> To: iup-users at lists.luaforge.net
> >> Subject: [Iup-users] Dynamically modified menus
> >>
> >> Is it not possible to dynamically modify the contents of menus? I
> >> have submenus whose contents depends on the currently viewed
> >> document, but I haven't found any way to modify this
> submenu in IUP.
> >>
> >> I've tried building a fresh menu and assigning this to the MENU
> >> attribute of the submenu, but that changes nothing.
> >>
> >> I guess I can fake the desired behavior by building a
> popup menu that
> >> is activated by a menu item - but is what I want really
> not possible?
> >>
> >> Best wishes,
> >> Otfried
> >>
> >>
> >> _______________________________________________
> >> iup-users mailing list
> >> iup-users at lists.luaforge.net
> >> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
> >>
> >>
> >
> >
> > _______________________________________________
> > iup-users mailing list
> > iup-users at lists.luaforge.net
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
> >
> >
> >
>
>
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
>
More information about the iup-users
mailing list