[comp.windows.x] Popup speed?

Sherman.Uitzetter@MAPS.CS.CMU.EDU (07/07/89)

   I have written a simple popup menu implementation but right now it is
painfully slow.  I'm sure it's because I shouldn't be using XtPopup to
popup the menu shells since this function realizes the shell widget even
if it has been realized in advance.

   My question is - if I create my own popup action that does everything
that XtPopup does except realize the shell widget, how can I set the
popped_up and spring_loaded fields in the widget record correctly? There
doesn't seem to be any simple way to do this.

   Better still - how can I continue to use XtPopup without it re-relizing
the menu shells everytime the user wants to see the menu?

Thanks in advance for responses.

-Sherman.

kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (07/07/89)

>    I have written a simple popup menu implementation but right now it is
> painfully slow.  I'm sure it's because I shouldn't be using XtPopup to
> popup the menu shells since this function realizes the shell widget even
> if it has been realized in advance.

You had better look deeper for the source of the problem, XtRealize
widget checks to see if a widget is already realized and if it is then no action is
taken.  

Do you have Save Unders active on your menus?  On slow machines this can
cause things to be really slow.  Especially if it has to page that chunk of
code in from the disk.


						Chris D. Peterson     
						MIT X Consortium 

Net:	 kit@expo.lcs.mit.edu
Phone:   (617) 253 - 9608	
Address: MIT - Room NE43-213