home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!news.cs.brandeis.edu!binah.cc.brandeis.edu!DERNIS
- From: dernis@binah.cc.brandeis.edu
- Newsgroups: comp.lang.c++
- Subject: Re: TVision: prevent closing windows?
- Message-ID: <1993Jan26.183323.9319@news.cs.brandeis.edu>
- Date: 26 Jan 93 18:33:23 GMT
- References: <1993Jan26.132907.26715@scott.skidmore.edu>
- Sender: news@news.cs.brandeis.edu (USENET News System)
- Reply-To: dernis@binah.cc.brandeis.edu
- Organization: Brandeis University
- Lines: 25
-
- In article <1993Jan26.132907.26715@scott.skidmore.edu>, pvonk@scott.skidmore.edu (Pierre VonKaenel) writes:
- >
- >I would like to have a window on the screen that never closes (the
- >class is never destroyed until the end of the program), but may be
- >toggled between hidden and displayed. I found how to prevent having a
- >close icon (upper left corner), but how can I prevent it being closed
- >using the "Window | Close" command from the menu bar (I want to allow
- >other windows to close). Is there a simple flag to do this, or do I
- >have to write a handleEvent() and intercept cmClose events?
- >
- >Thanks....
- >
- >
- >--
- >Pierre von Kaenel | Math & CS Dept | Skidmore College | pvonk@skidmore.edu
- >----------------------------------------------------------------------------
- >Ads from premier issue of PC Tech Journal (Jul 83): 20MB Hard disk from
- >QCS - Cost: $2999. Davong 5 MB int. hard disk... only $1465!
-
- Yes, disable the command cmClose, when the window is selected, and
- enable it with others.
-
- If you need more details, I can fill them in later.
-
- Mitch Dernis
-