[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
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 |
2975.0. "Access Violation on XtmanageChild" by METIS::FARRELL () Thu Jun 21 1990 12:29
Hello,
I am having a strange problem, and the error is not helping me find
it.
I want to create an options menu. (i.e. When the user pushes the button
an option menu will appear with some choices in it. (similar to the
middle button on the window icon box under DECW V5.3+)
Anyway, I create an Option menu
widget1 = DwtOptionMenuCreate(main_widget,"myname",NULL,0);
/* Set foreground/background colors in XtSetArg calls */
widget2 = DwtMenuPulldownCreate(tmp_widget,temp,args,2);
/* Then I add some push button widgets as children of the Pulldown menu */
Now I can XtManageChild on widget1 ok, but when I try to manage
widget2, at any time, I get an access violation!?!
I am also trying to do the same thing using a PullDownMenuEntry instead
of a optionmenu, and I get the same results.
Could someone tell me what I am doing wrong? The widget2 value looks
ok upon the call return, and this is a legal child (control) of both
an optionMenu and a PullDownMenuEntry.
I am lost,
Any/all help would be appreciated,
thanks,
$$$$ ted $$$$
T.R | Title | User | Personal Name | Date | Lines |
---|
2975.1 | Access Violation on XtmanageChild | RTL::JUNE | | Fri Jun 22 1990 14:52 | 8 |
|
Try creating widget2 with the same parent as widget1 (i.e. main_widget).
Then, make sure you've set the subMenuId resource of widget1 to point
to widget2 (so its probably better to create widget2 before widget1).
Finally, only manage widget1 -- widget2 will be automatically managed
when the proper mouse actions occur.
Rich
|