> > All the examples that come with PGUI seem to use hardcoded menues. > > They work in that way, that they build up the menu at the time, where > > a callback funtion is called. But this means, that the menu is > > hardcoded in this function. > > Actually, all menus are by nature dynamic in PicoGUI, most apps just use > functions that build it all in one step, for convenience. You can use > pgNewPopupAt to create a new popup widget, then add menuitems or > whatever else.
Ok. I still have no idea, how to do it. The problem: My editor I want to port does configure it's menues at start. But you can not see the menues. They appear, when you click for example the File button in the top menu bar. But they are built long before. In PGUI examples the menu is built on the fly with definitive widgets or better buttons. My idea is to build such a menu - prepared, and then hide it. First let is re-appear, if I do click the "file" menu button. Technically I think it can be done. I can Attach a tree of widgets (my menu) to a new widget. Could I let it pop up again under the "File" menu button? If not, I would have to write my own system, which stores information of all menu entries of my menu in a linked list or an array. If this meny is choosen I would have to generate a visible dropdown menu from this information on the fly. But this seems unconfortable to me, where it possibly can be done without this overhead. -- Martin ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
