grunwald@foobar.colorado.edu (Dirk Grunwald) (01/13/90)
Hi, I was thinking of implementing an extension to the simplemenu package to take a resource string & build a (cascading menu) automatically, with actions performaned as callbacks. e.g. foomenu.menu:(menu "The Foo Menu" (item "Foo" invoke-foo(bar)) (line) (item "Bar" invoke-bar(foo)) (menu "SubMenu" (item "rab" quit-aapplication()))) this would build a two-level cascading menu; entry onto SubMenu would popup the second level. selection of a menu item would invoke the specified action procedure. My questions about this are (1) Would it make sense to subclass SimpleMenu to do this, or is this asking for trouble? I'm assuming all I would need to do is subclass setvalues & the initialization to create & manage the other widgets (SME's, lines, etc) needed for this notation. (2) Is each SME a different window? I remember seeing something about window-less widgets in this Xt. What's the expense and advantage of window-less widgets? Dirk Grunwald -- Univ. of Colorado at Boulder (grunwald@foobar.colorado.edu) (grunwald@boulder.colorado.edu)