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