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

  1. Path: sparky!uunet!tdat!swf
  2. From: swf@teradata.com (Stanley Friesen)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Re: Xview popup problem
  5. Message-ID: <791@tdat.teradata.COM>
  6. Date: 30 Jul 92 19:18:25 GMT
  7. References: <268@ftms.UUCP>
  8. Sender: news@tdat.teradata.COM
  9. Reply-To: swf@tdat.teradata.com (Stanley Friesen)
  10. Organization: NCR Teradata Database Business Unit
  11. Lines: 34
  12.  
  13. In article <268@ftms.UUCP> brown@ftms.UUCP (Vidiot) writes:
  14. |
  15. |I am encountering some difficulty working around one of the "features"
  16. |of XView. Does anyone know how to get around the following?
  17. |
  18. |I create a popup window with its pushpin out. When ever a button is pressed,
  19. |the popup *always* disappears, even if I explicitly set the XV_SHOW attribute
  20. |for the frame to TRUE in the notify proc for the button, before the return
  21. |to the Notifier. ...
  22.  
  23. That's right.  That is how it is supposed to work.  The blessed way of
  24. doing what you want is described in the XView Reference Manual as follows:
  25.  
  26.    If the panel item is part of an unpinned command frame, then the window
  27.    is dismissed if PANEL_NOTIFY_STATUS is XV_OK.  If PANEL_NOTIFY_STATUS is
  28.    set to XV_ERROR, then the window is not dismissed.
  29. and later:
  30.    Default: XV_OK
  31.  
  32. Thus for those buttons that do not finish the operation of the you must
  33. *always* set PANEL_NOTIFY_STATUS to XV_ERROR, as follows:
  34.     xv_set(item, PANEL_NOTIFY_STATUS, XV_ERROR, 0);
  35. (where item is probably the first arg to your callback function).
  36.  
  37.  
  38. Yeah, I know, it really isn't an *error*, but you have to say it is.
  39. (This is one thing that OLIT got better - in that toolkit the pop-up
  40. panel is divided into two regions, and upper region contining non-finishing
  41. items, and a lower region that contains the items that should complete
  42. the pop-up operation).
  43. -- 
  44. sarima@teradata.com            (formerly tdatirv!sarima)
  45.   or
  46. Stanley.Friesen@ElSegundoCA.ncr.com
  47.