[net.micro.mac] DISPOSDIALOG questiob

phil@sivax.UUCP (Phil Hunt) (03/27/86)

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

*** REPLACE THIS LINE WITH YOUR MESSAGE ***

clubmac@runx.OZ (Mac users club) (04/09/86)

    
>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