home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / toolkits / xview / 1075 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

  1. Xref: sparky alt.toolkits.xview:1075 comp.windows.x:19333
  2. Newsgroups: alt.toolkits.xview,comp.windows.x
  3. Path: sparky!uunet!cs.utexas.edu!uwm.edu!rpi!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!aragorn.unibe.ch!rantanplan!moeri
  4. From: moeri@iam.unibe.ch (Daniel Moeri)
  5. Subject: Disable 'Quit'
  6. Message-ID: <1992Nov19.105124.14210@aragorn.unibe.ch>
  7. Sender: news@aragorn.unibe.ch
  8. Reply-To: moeri@iam.unibe.ch
  9. Organization: Dept. of Computer Science, University of Berne, Switzerland
  10. Date: Thu, 19 Nov 1992 10:51:24 GMT
  11. Lines: 28
  12.  
  13. Hello, 
  14. I'm using Sun OpenWindows v3 and Devguide 3.0 and I want to disable to 'quit' option
  15. of a window which is called by my main window.
  16.  
  17. As I know it's not possible to disable the 'quit' (so it looks 'greyish'). Therefore, I tried
  18. with the XChangeProperty:
  19. protocol = XInternAtom(display, "WM_PROTOCOLS", False);
  20. delete = XInternAtom(display, "WM_DELETE_WINDOW", False);
  21. if ((protocol != None) && (delete != None))
  22.   XChangeProperty(display, win, protocol, XA_ATOM, 32, PropModePrepend,
  23.     (unsigned char *)&delete, 1);
  24.  
  25. What makes me confused is the fact that this works if the window is created with
  26. the XCreateWindow but not if it's created via devguide!
  27.  
  28. Another tiny question:
  29. If I make a connection (->devguide) from a button of the main_window to show the
  30. window, I get everything as expected with the test-mode of devguide (the window
  31. is made visible). But there's no source produced from devguide! (The correct statement
  32. is produced if a make a connection from a button to a popup)
  33. Is this a bug of devguide?
  34.  
  35. Thanks in advance,
  36. Daniel
  37.  
  38.  
  39.  
  40.  
  41.