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

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!ftms!brown
  2. From: brown@ftms.UUCP (Vidiot)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Xview popup problem
  5. Message-ID: <268@ftms.UUCP>
  6. Date: 29 Jul 92 17:31:30 GMT
  7. Reply-To: brown@ftms.UUCP (Vidiot)
  8. Organization: Vidiot's Other Hangout
  9. Lines: 38
  10.  
  11.  
  12. SunOS 4.1.1  OW2.0
  13.  
  14. The following question is from one of our software development team members.
  15. Any and all help is appreciated.
  16.  
  17.  
  18. I am encountering some difficulty working around one of the "features"
  19. of XView. Does anyone know how to get around the following?
  20.  
  21. I create a popup window with its pushpin out. When ever a button is pressed,
  22. the popup *always* disappears, even if I explicitly set the XV_SHOW attribute
  23. for the frame to TRUE in the notify proc for the button, before the return
  24. to the Notifier. I even tried sticking in the following code before setting
  25. XV_SHOW, in the hope that executing the Notifier loop once might reset things,
  26. but it still didn't work:
  27.  
  28.     notify_dispatch();
  29.     XFlush( (Display *) xv_get( frame, XV_DISPLAY ) );
  30.  
  31.  
  32. The reason I want to do this is that my popup creates a list of filenames
  33. and directories to load (the directory names have a "/" at the end to
  34. distinguish them). If the user selects a directory name from the scrolled
  35. list and presses the Load button, I want the popup to then display the list 
  36. of filenames and directories in the selected directory. The 
  37. list of files is successfully built and displayed (I know this because I
  38. can see this when I step through execution of the code with the debugger),
  39. but when the return to the Notifier is done from the button notify proc, 
  40. the popup always disappears if the pushpin was out. I also tried setting
  41. the FRAME_CMD_PUSHPIN_IN attribute to TRUE before the return to the
  42. Notifier but that still didn't work.
  43.  
  44. -- 
  45. harvard\
  46.   ucbvax!uwvax!astroatc!ftms!brown  or  uu2.psi.com!ftms!brown
  47. rutgers/
  48. INTERNET: brown@wi.extrel.com  or  ftms!brown%astroatc.UUCP@cs.wisc.edu
  49.