home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!swrinde!elroy.jpl.nasa.gov!usc!rpi!batcomputer!cornell!uw-beaver!news.u.washington.edu!milton.u.washington.edu!aph
- From: aph@milton.u.washington.edu (Al Hallstrom)
- Newsgroups: comp.sys.mac.programmer
- Subject: Disabling Command-Q in a program; HELP
- Keywords: Menus, File,Quit,Q
- Message-ID: <1992Aug19.204614.11139@u.washington.edu>
- Date: 19 Aug 92 20:46:14 GMT
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: aph@u.washington.edu
- Distribution: usa
- Organization: University of Washington, Seattle
- Lines: 13
-
- I am using THINK C 5.0 on a Mac IIsi.
- I am writing a program and I want to disable the user from being able to
- press Command-Q to quit. Yes I know this is not a good idea, but you will
- just have to trust me. I have been able to get is that if you pull down the
- menu and select Quit nothing happens, but that is not what I want. I have
- looked through ANSI and changed the InitConsole section where menus are
- created. I have played with ResEdit and adding menus that way. Even if I
- can get rid of the menus Quit (along with the Edit commands) still have
- their command key equivalents. Does anyone know of any way to diasble
- the command key equivalents? It would be a great help.
-
- Philip Hallstrom
- aph@u.washington.edu
-