Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
I'm trying to set the menu history of an option menu at runtime. I set up the create callback in UIL for the push button. At create time, I call SetValues passing the widget id of the push button and setting its parent's menu history. But, nothing happens. XtSetArg( arg_list[ 0 ], DwtNmenuHistory, wid ); XtSetValues( XtParent( wid ), arg_list, 1 ); Any ideas ? - Ken
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
613.1 | CASEE::LACROIX | Gone with the wind | Tue Apr 18 1989 08:51 | 13 | |
Re .0: > XtSetArg( arg_list[ 0 ], DwtNmenuHistory, wid ); > XtSetValues( XtParent( wid ), arg_list, 1 ); The parent of wid is probably not the option menu itself. Use a creation callback for the option menu itself so that you can register the option menu widget in your own data structures, and do the SetValues on this widget. Hope this helps, Denis. | |||||
613.2 | widget must be child of option menu? | CSCOA5::HOOD_DO | Thu Feb 01 1990 15:10 | 23 | |
re -.1: I'm a little confused. I am running uws 2.2 on a cmax. my documentation says : DwtNmenuHistory Holds the widget ID of the last menu entry that was activated...... This attribute may be set to precondition option menus and pop-up menus mouse memory. This seems to indicate thhat the ID will be one of the child togglebutton widgets for the child pulldown menu associated with the option menu.... i.e. the parent of wid in the previous reply would be the pulldown menu and not the option menu itself. Am I missing something? I have a customer with the following hierarchy toplevel<-attacheddb<-attacheddb<-optionmenu<-pulldownmenu<-togglebuttons The "Writing Applications" in Volume 1 of "Programming" in uws documentation states that this a special case for the pulldown menu, and that you dont have to create a pulldownmenuentrywidget to use the pulldown menu (just pass the pulldown widget id in the DwtNsubMenuId attribute of the option menu). I tried this and could not get it to work. Any Ideas? | |||||
613.3 | does anyone read old notes? | CSCOA5::HOOD_DO | Tue Feb 06 1990 14:16 | 6 | |
should I include code with my question? should I also say that this appears to work from UIL? has anybody out there created an option menu under UWS v2.1 or UWS v2.2 for a DECstation 3100? One 50-line working example of an Option menu would make my day!! |