home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / openloo / 3307 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.2 KB

  1. Path: sparky!uunet!olivea!decwrl!csus.edu!csusac!unify!openlook!openlook-request
  2. From: fgreco@fis1026.shearson.com (Frank Greco)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Xview popup problem
  5. Message-ID: <x3xfuo8@openlook.Unify.Com>
  6. Date: 31 Jul 92 15:07:55 GMT
  7. Sender: news@Unify.Com
  8. Lines: 42
  9.  
  10. > I create a popup window with its pushpin out. When ever a button is pressed,
  11. > the popup *always* disappears, even if I explicitly set the XV_SHOW attribute
  12.  
  13.     This is a feature.
  14.  
  15. > for the frame to TRUE in the notify proc for the button, before the return
  16. > to the Notifier. I even tried sticking in the following code before setting
  17. > XV_SHOW, in the hope that executing the Notifier loop once might reset things,
  18. > but it still didn't work:
  19.  
  20.     First, if you can, use OW 3.0 and devguide 3.0.  It's so much
  21.     easier to do.
  22.  
  23.     First of all, the pushpin has a lot to do with the popup's visibility.
  24.  
  25.     Here's some code that might help you:
  26.  
  27.     _showpopup(f, flag)
  28.     Frame f;
  29.     int flag;
  30.     {
  31.         return xv_set(f,
  32.             FRAME_CMD_PUSHPIN_IN,    flag,
  33.             XV_SHOW,        flag,
  34.             NULL;
  35.     }
  36.  
  37.     showpopup(f)
  38.     Frame f;
  39.     {
  40.         _showpopup(f, TRUE);
  41.     }
  42.  
  43.     unshowpopup(f)
  44.     Frame f;
  45.     {
  46.         _showpopup(f, FALSE);
  47.     }
  48.  
  49.  
  50.     Frank G.
  51. =-=-=-=-=-=-=-=-=-=
  52.