Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!isi.com!tsang From: tsang@isi.com (Kam C. Tsang) Newsgroups: comp.windows.x.motif Subject: Catching an exit event Message-ID: <9007092041.AA02061@canopus> Date: 9 Jul 90 20:41:09 GMT References: <1990Jul9.154749.29605@maytag.waterloo.edu> Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 14 > How can I tell under Motif/X when a user has selected the "Close" item > on the system menu attached to the top-level shell? The VendorShell resource XmNdeleteResponse can be used to trap the "Close" item. The simpleset case is to set it to XmDO_NOTHING. Otherwise you can set it to XmDESTROY (or XmUNMAP), and then do your cleanup in your XmNdestroyCallback (or XmNunmapCallback). -------------------------------------------------------------- Kam Tsang User Interface Group Tel: (408) 980-1500 x275 Integrated Systems, Inc. Internet: tsang@isi.com 2500 Mission College Blvd. Voice mail: (408) 980-1590 x275 Santa Clara, CA 94054