Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!columbia!rutgers!sri-unix!sri-spam!ames!ucbcad!ucbvax!decvax!dartvax!merchant
From: merchant@dartvax.UUCP (Peter Merchant)
Newsgroups: comp.sys.mac
Subject: Re: Drawing Lines in Dialogs
Message-ID: <6608@dartvax.UUCP>
Date: Mon, 6-Jul-87 10:49:20 EDT
Article-I.D.: dartvax.6608
Posted: Mon Jul  6 10:49:20 1987
Date-Received: Fri, 10-Jul-87 00:39:08 EDT
References: <1256@apple.UUCP>
Organization: Dartmouth College, Hanover, NH
Lines: 27
Keywords: drawing tricks dialogs

In article <1256@apple.UUCP>, dowdy@apple.UUCP (Tom Dowdy) writes:
> Today I was working on a dialog that needed some standard Gray lines
> (horizontal and vertical) to separate portions of the dialog.
> 
> I was going to use a UserItem but I asked someone else what they thought.
> They told me to use a PICT resource to do it.
> 
> It's very simple.  You have two PICT resources, one contains a vertical
> grey line, one a horizonal (I used MacDraw to create them).  When you
> need a line in your dialog, you simply put the PICT in your DITL, 
> and drag it(With ResEdit) to the desired size.
>
>   Tom Dowdy                 CSNET:    dowdy@apple.CSNET

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 suppose
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 dialog
box.

Next time you're in the neighborhood with "someone else", ask if there is a
nice way to use the PICT resource in a DA.
--
"They call it 'understanding',           Peter Merchant (merchant@dartvax.UUCP)
 A willingness to grow."