Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!leah!bingvaxu!sunybcs!boulder!tramp!hartkopf From: hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M) Newsgroups: comp.sys.apple Subject: Re: custom icon questions again Message-ID: <9365@boulder.Colorado.EDU> Date: 12 Jun 89 19:04:50 GMT Sender: news@boulder.Colorado.EDU Reply-To: hartkopf@tramp.Colorado.EDU (HARTKOPF JEFFREY M) Distribution: usa Organization: University of Colorado, Boulder Lines: 38 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... Dave, Sorry to bother you again but I'm stuck once more trying to draw icons in windows with DrawIcon. I guess my problem isn't that I'm not doing the DrawIcon parameters right, but that my icon format must be wrong. 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; (remember I'm using TML Pascal). Then I used the StuffHex procedure like StuffHex(@MyIcon.Data[1], 'abcdef12345678'); StuffHex(@MyIcon.Data[2], '00030030400201'); ... StuffHex(@MyIcon.Data[11],'10357182748274'); 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? I tried this way but it still didn't work with DrawIcon. What exactly is the format for a DrawIcon icon? Thanks very much. Hopefully I won't have to bother you again. :-) --Jeff Hartkopf, hartkopf@tramp.Colorado.EDU