Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!ncar!news.miami.edu!umiami!dweisman From: dweisman@umiami.ir.miami.edu (Ordinary Man) Newsgroups: comp.sys.mac.programmer Subject: Re: amateur programming questions Message-ID: <1991Feb14.165107.7828@umiami.ir.miami.edu> Date: 14 Feb 91 21:51:07 GMT References: Organization: Univ of Miami IR Lines: 54 In article , frost@watop.nosc.mil (Richard Frost) writes: > > Hi! I'd appreciate some help or pointers to useful references for the > following: > > I have defined bitmapped icons for the application (in ICON), but how do I > get the system to display/recognize them? > If your wish is to display icons in a window (similar to the old MacPaint icon pallette), it's really a pretty simple process: As you've mentioned, you create the 'ICON' resources with ResEdit and remember (write down) the ID's of them. Then just load it (them), make a rect to put it in a window, and plot it (them). Don't forget to set the port of the window to draw in, though. For Example: var theIcon:Handle; theRect:=Rect; begin ... theIcon:=GetIcon(theID); SetRect(theRect,0,0,32,32); {or anything 32X32 pixels (if you want it} {the same size) } PlotIcon(theRect,theIcon); ... Couldn't be simpler. On the other hand, if you meant that you wanted to design an icon for your application (for the finder), then you should be using 'ICN#' resources. If this is what you asked, then the above will be for the benefit of other programmers, I guess! :-) > - Thanks in advance! > > -- > Richard Frost Naval Ocean Systems Center > frost@watop.nosc.mil voice: 619-553-6960 You're welcome, ==Dan -- /-------------------------------------------------------------------------\ | Dan Weisman - University of Miami - Florida | || || || || | |--------------------------------------------------| || || ||\ /|| | | INTERNET -----> dweisman@umiami.IR.Miami.edu | || || || | || | | BITNET -----> dweisman@umiami | ||||||| || | || | |-------------------------------------------------------------------------| | "The more I get to see, the less I understand..." - Triumph | \_________________________________________________________________________/