home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15255 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.1 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!exodus.Eng.Sun.COM!sun!claris!wombat
  2. From: wombat@claris.com (Scott Lindsey)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Drawing Icons in Modal Dialogs?
  5. Message-ID: <15149@claris.com>
  6. Date: 9 Sep 92 23:21:36 GMT
  7. References: <1992Sep8.170930.24746@utkux1.utk.edu>
  8. Sender: news@claris.com
  9. Organization: Claris Corporation, Vancouver WA
  10. Lines: 19
  11. Nntp-Posting-Host: lindsey
  12. Wombat: yes
  13. Number: 64962
  14.  
  15. In article <1992Sep8.170930.24746@utkux1.utk.edu>, danny@utkux1.utk.edu (Danny W. McCampbell) writes:
  16. > Hi.  I have a modal dialog that I want to draw an ICON resource
  17. > in.  The problem I have is I am getting the resource from an
  18. > ICN# resource.  How can I draw this ICN# resource as an ICON
  19. > resource into a Modal Dialog?  Any ideas would be greatly appreciated.
  20.  
  21. Try
  22.  
  23.     GetDItem(dlog, Item, &IType, &IHdl, &IRect);
  24.     ReleaseResource(IHdl);
  25.     IHdl = GetResource('ICN#', id);
  26.     SetDItem(dlog, Item, IType, IHdl, &IRect);
  27.  
  28. Since an ICON resource is a proper prefix of an ICN#, you shouldn't have any
  29. problems.
  30.  
  31. --
  32. Scott Lindsey <wombat@claris.com>
  33.