| > I have another question about pop up menu's
> Is it possible to change the contents of a pop-up menu ?
> I have a pop-up menu, that has to be changed depending of the
> situation.
> Also the required action has to be changed.
> I s it possible to change the popup, or should i make a different
> pop-up for every situation ?
Yes, it is quite possible to change the contents of the menu. It involves
unmanaging all the children (pushbuttons), setting the menu size to 0x0
(using XtSetValues), and then calling XtManageChild for each pushbutton
that you want to be presented.
The reason you have to set the size to zero is to get around an apparent
bug in the menu widget that was not shrinking itself when children get
unmanaged. This might have been fixed in Motif.
You should, and in fact must, have only one popup menu (per parent).
This is because the popup menu takes a passive grab on the parent,
and only one such grab is allowed per window.
...
As far as the missing Xlib routine, it is quite possible that it
was left out of the shareable image transfer vector (on VMS).
XLib maintainer - are you listening?
-steve-
|
| Yep, it's missing. We have found a lot of these by writing extensions, but we
never wrote an extension before which did not have a server counterpart, and
that is all that XAddExtension is useful for.
What were you planning to do, just out of curiosity?
Burns
|