Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: custom icon questions again Message-ID: <32384@apple.Apple.COM> Date: 13 Jun 89 03:51:46 GMT References: <9365@boulder.Colorado.EDU> Distribution: usa Organization: Apple Computer Inc, Cupertino, CA Lines: 48 In article <9365@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M) writes: >To Dave Lyons: For some reason I couldn't get this letter to you through >E-mail like I was able to with my first one, so I'll post it... Actually, I think your letter did get through...it's probably lying on my floor. (All together now...let's say "Dave is way behind and really should never print out a message instead of replying to it immediately.") >[...] I figured out how to draw an icon in a dialog box using NewDItem, where >the format for the icon was > >MyIcon: >record > BoundsRect: Rect; > Data: Array[1..11, 1..7] of byte; >end; That's fine. Even better than Array[0..xxx] of byte, since it makes the structure more obvious. It doesn't matter how many bytes you put on a line, as long as your declaration matches your StuffHex statements. >or whatever (this for the Dialog box version). Now in your letter to me you >said I should do it using an array of char like array[0..200] of char, and >then using StuffHex like > >StuffHex(@MyIcon[0], '1029492412a2'); >StuffHex(@MyIcon[6], '........ > >and so on. Is this the method for IconItem's or DrawIcon? You can StuffHex for any purpose you want. It'll work for either iconItems and for DrawIcon icons, but you need to stuff *different* data for DrawIcon than you need to stuff for iconItems. >What exactly is the format for a DrawIcon icon? See Toolbox Ref Vol 2, page 17-3. The format is different from DrawIcon. >--Jeff Hartkopf, hartkopf@tramp.Colorado.EDU --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.