Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!necntc!ames!amdcad!sun!imagen!atari!portal!cup.portal.com!Charlie_Alan_Bounds
From: Charlie_Alan_Bounds@cup.portal.com
Newsgroups: comp.sys.mac
Subject: Re: Drawing Lines in Dialogs
Message-ID: <507@cup.portal.com>
Date: Sat, 11-Jul-87 02:27:46 EDT
Article-I.D.: cup.507
Posted: Sat Jul 11 02:27:46 1987
Date-Received: Wed, 15-Jul-87 00:47:55 EDT
References: <1256@apple.UUCP> <6608@dartvax.UUCP>
Distribution: world
Organization: The Portal System (TM)
Lines: 16
XPortal-User-Id: 1.1001.1984


Peter Merchant writes :
> Recently I had to do the same thing and I came up with the same idea.  The
> problem is, it didn't work because it was in a Desk Accessory.  It seems
> that Font/DA Mover (at least the version I have...3.2, I think) added the
> PICT resource but it didn't change the reference in the dialog box.  I suppos
> I could have still done it with a bit of code to figure out what the resource
> number was and change the reference in the dialog box and then draw the dialo
> box.

Try loading the DITL using GetResource and putting in the correct PICT id
yourself.  Then when the dialog manager gets control it finds the DITL already
loaded and simply reuses it (but it will be purged when you terminate the
dialog so you will have to load and patch it again if you wish to re-display
the dialog)

Charlie Bounds         Charlie@cup.portal.com