Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!orsvax1!pyrnj!caip!seismo!munnari!basser!metro!ipso!runx!clubmac From: clubmac@runx.OZ (Mac users club) Newsgroups: net.micro.mac Subject: Re: DISPOSDIALOG questiob Message-ID: <979@runx.OZ> Date: Wed, 9-Apr-86 04:25:31 EST Article-I.D.: runx.979 Posted: Wed Apr 9 04:25:31 1986 Date-Received: Sat, 12-Apr-86 22:30:53 EST References: <220@sivax.UUCP> Organization: RUNX Un*x Timeshare. Sydney, Australia. Lines: 45 >I am having a problem with the dialog box opened with a GETNEWDIALOG toolbox >call (Resource created by RESEDIT 1.0D7), not going away when DISPOSDIALOG >is called. > >All the items in the box go away (Buttons,edit fields, static fields etc), but >the box outline stays around. > >Any ideas???? > >Phil Hunt > Phil, I would suggest that you call HideWindow before DisposeDialog. e.g. #define DLOGID 1234 DialogPtr MyDialogPtr; trash_dialog() { HideWindow(MyDialogPtr); DisposeDialog(MyDialogPtr); } main() { ..... ..... MyDialogPtr = GetNewDialog(DLOGID,NULL,(WindowPtr) -1); ..... ..... } Hope that helps, Jason Haines (baron@runx.OZ) President of Vice. Club Mac ISD: +61 2 73-4444 Sydney University STD: (02) 73-4444 Macintosh Society ARPA: munnari!ipso!runx.oz!clubmac@SEISMO Broadway NSW 2006 UUCP: seismo!munnari!basser!ipso!runx!clubmac AUSTRALIA ACS: clubmac@runx