[comp.sys.sun] Closing SunView windows

dmg@beaver.cs.washington.edu (David Geary) (07/27/89)

Does anyone know how to close a window from a C program *without* getting
the "Press the left mouse button to confirm quit..." message being
displayed?

I've tried both window_destroy() and window_done(), but both of them post
the confirm message.  I just want the window to close, I don't want the
user having to confirm anything.

Thanx,

David Geary, Boeing Aerospace, Seattle
"I wish I lived where it *only* rains 364 days a year" 

phill%med-image.compsci.bristol.ac.uk@nsfnet-relay.ac.uk (07/28/89)

>Does anyone know how to close a window from a C program *without* getting
>the "Press the left mouse button to confirm quit..." message being
>displayed?

>I've tried both window_destroy() and window_done(), but both of them post
>the confirm message.  I just want the window to close, I don't want the
>user having to confirm anything.

>Thanx,

You need to call window_set(base_frame, FRAME_NO_CONFIRM, TRUE, 0); to get
the desired effect. (See page 383 of SunView programmer's guide v4.0).

Phill Everson
Medical Imaging
Dept Comp Sci
University of bristol, UK

chuck@trantor.harris-atd.com (Chuck Musciano) (07/28/89)

> Does anyone know how to close a window from a C program *without* getting
> the "Press the left mouse button to confirm quit..." message being
> displayed?

     RTFM :-)  Just do a 

	window_set(frame, FRAME_NO_CONFIRM, TRUE, 0);

before calling either window_done() or window_destroy().


Chuck Musciano				ARPA  : chuck@trantor.harris-atd.com
Harris Corporation 			Usenet: ...!uunet!x102a!trantor!chuck
PO Box 37, MS 3A/1912			AT&T  : (407) 727-6131
Melbourne, FL 32902			FAX   : (407) 727-{5118,5227,4004}

Oh yeah, laugh now!  But when the millions start pouring in, I'll be the one
at Burger King, sucking down Whoppers at my own private table! --Al Bundy

sridhar@hplabs.hp.com (Sridhar Acharya) (07/29/89)

>Date:    26 Jul 89 19:06:37 GMT
>From:    ssc-vax!dmg@beaver.cs.washington.edu (David Geary)
>
>Does anyone know how to close a window from a C program *without* getting
>the "Press the left mouse button to confirm quit..." message being
>displayed?
>
>I've tried both window_destroy() and window_done(), but both of them post
>the confirm message.  I just want the window to close, I don't want the
>user having to confirm anything.

That's simple,

In the window_set() call set the FRAME_NO_CONFIRM attribute to TRUE before
you do window_destroy() and you will be all set.

Sridhar Acharya
Software Engineer
Hughes Lan Systems.
UUCP: ...sun!sytek!sridhar		Internet: sridhar@sytek.hls.hac.com

poffen@sj.ate.slb.com (Russ Poffenberger) (08/15/89)

In article <353@brazos.Rice.edu> ssc-vax!dmg@beaver.cs.washington.edu (David Geary) writes:
|X-Sun-Spots-Digest: Volume 8, Issue 82, message 8 of 9
|
|Does anyone know how to close a window from a C program *without* getting
|the "Press the left mouse button to confirm quit..." message being
|displayed?
|
|I've tried both window_destroy() and window_done(), but both of them post
|the confirm message.  I just want the window to close, I don't want the
|user having to confirm anything.
|
|Thanx,
|
|David Geary, Boeing Aerospace, Seattle
|"I wish I lived where it *only* rains 364 days a year" 


Yeah, somewhere during either the window creation, or later using a window_set
call, add in ...FRAME_NO_CONFIRM,TRUE....

Russ Poffenberger
Schlumberger Technologies
poffen@sj.ate.slb.com