From owner-oi-users Wed Feb 22 08:26:50 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id IAA21089 for oi-users-outgoing; Wed, 22 Feb 1995 08:26:50 -0800 Received: from bridge2.NSD.3Com.COM (bridge2.NSD.3Com.COM [129.213.128.4]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id IAA21083 for ; Wed, 22 Feb 1995 08:26:49 -0800 Received: from tenaya.NSD.3Com.COM by bridge2.NSD.3Com.COM with SMTP id AA15026 (5.65c/IDA-1.4.4nsd for ); Wed, 22 Feb 1995 08:26:24 -0800 Received: from localhost.NSD.3Com.COM by tenaya.NSD.3Com.COM with SMTP id AA04714 (5.65c/IDA-1.4.4-910730 for ); Wed, 22 Feb 1995 08:25:14 -0800 Message-Id: <199502221625.AA04714@tenaya.NSD.3Com.COM> To: oi-users@freefall.cdrom.com Subject: vanishing dialog box Organization: 3Com, 5400 Bayfront Plaza, Santa Clara, CA 95052-8145 Phone.......: (408) 764-6204 (Office) (408) 764-5000 (General Office) Date: Wed, 22 Feb 1995 08:25:13 -0800 From: priag Sender: oi-users-owner@FreeBSD.org Precedence: bulk Hi - We have an application which uses an object subclassed from OI_dialog_box to display results of a long-running operation. If the user closes the dialog box while the operation is running, I need to terminate that operation since there's no longer any place to display the output. If the user selects the abort button on the dialog box, everything works fine: I clean up and close the window. If the user dismisses the window from the window decoration, however, I can't get the behavior I want. Since the operation may run for quite a while, I would like to be able to prompt the user and dismiss the window/cancel the operation ONLY if the user confirms. In fact, my unpin callback gets called, but even if I return without taking down the window, OI makes it disappear after I return (apparently setting state to OI_not_displayed - it's not destroyed, just not visible). Is there any way to prevent this? I tried adding a terminate call back but it doesn't get called unless a button is selected. Any other ideas? Thanks, Pria Graves