rusty@BOSCO.BERKELEY.EDU (05/05/88)
More work needs to be done on the demo programs before it begins to present a decent user interface. These remarks pertain to demo8; similar fixes probably apply to the other 7. 1. Each call to XtCreatePopupShell should have its second arg changed from shellWidgetClass to transientShellWidgetClass. 2. Note that in demo8 the top level menu's callback is menu_button_clicked and that it does a XQueryPointer and then an XtMoveWidget; copy those lines (and the declarations of the variables that they use) into menu_list_callback. You can probably put the XQueryPoint before the switch statement and put the XtMoveWidget in front of each XtPopup; I just put both of them inside the case 10 (in front of XtPopup) to see if I could get the first menu item to work. Even with these fixes I think that this stuff isn't terribly useful; for one thing, there's just too much code that the widget programmer has to grind out. I think the stuff with XQueryPointer and XtMoveWidget should be done automatically. And, perhaps for menus that aren't checkitems, the XtPopup and XtPopdown should also be done automatically. Also, (1) there shouldn't need to be a menu item to get rid of the menu; moving the mouse out of the submenu should make it go away, (2) the menus should only stay up as long as you hold down the mouse button; perhaps using a command widget to call up the menus isn't the way to go here (for example, the menu widget could provide a variant button). Also, it would be nice if both popup and walking-right submenus were provided.
gaur@uicsrd.csrd.uiuc.edu (05/05/88)
I have not been able to complie any of the stuff in the contrib/menus directory in X11R2. Does any one have versions which compile and include the right files. Moreover, it seems that MenuBoxWidgetClass is not there in Xtoolkit athena widgets. If anyone has some kind of Menu's and Menu Bar mechanism working. Please let me know how to get that. We were using Menu stuff in the Xrlib for the X10VR4. Thanks, yogesh (gaur%uicsrd@a.cs.uiuc.edu)