[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

3054.0. "Where is XAddExtension?" by IJSAPL::BROUWERS () Tue Jul 10 1990 07:36

    I try to find the XLIB routine XAddExtension, but it seems to be not
    in the library.
    I'm using VMS V5.2
    Where is this routine ?
    
    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 ?
    
    thanks, Gerard Brouwers EIS Utrecht.
    
T.RTitleUserPersonal
Name
DateLines
3054.1LOWELL::KLEINTue Jul 10 1990 12:3228
>    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-
3054.2My bugSTAR::ORGOVANVince OrgovanTue Jul 10 1990 20:074
    Yes, unfortunately it looks like XAddExtension is missing from
    the transfer vector. It's still missing in VMS V5.4. Note that
    none of the extension routines are documented, but they are all 
    supposed to be in the transfer vector. 
3054.3Please submit a QAR to ensure that it gets fixedDECWIN::FISHERPrune Juice: A Warrior's Drink!Fri Jul 13 1990 10:567
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