Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!zaphod.mps.ohio-state.edu!think.com!cass.ma02.bull.com!mips2!bull.bull.fr!corton!mcsun!ukc!slxsys!ibmpcug!robobar!stl!servax0!cam-cl!news From: nbvs@cl.cam.ac.uk (Nicko van Someren) Newsgroups: comp.sys.acorn Subject: Re: File icon in dialogue box Message-ID: <1991May18.105055.6792@cl.cam.ac.uk> Date: 18 May 91 10:50:55 GMT References: <771@.econ.vu.nl> Reply-To: nbvs@cl.cam.ac.uk (Nicko van Someren) Organization: U of Cambridge Comp Lab, UK Lines: 20 In article <771@.econ.vu.nl> walther@econ.vu.nl (Walther Schoonenberg/10000) writes: > >I'm writing an application in C (for Lingenuity) and use a file info dialogue >box (like the one in Edit etc.). But I cannot make a file icon appear in this >dialogue box. Have you tried: #include "fileicon.h" fileicon((wimp_w) dbox_syshandle(my_dialog), my_file_icon, the_file_type); This sets up the icon to be a sprite of the right type for the file type. Also have you checked that the sprite area for the window is specifed to be 1 (i.e. the shared wimp sripte area)? Nicko +-----------------------------------------------------------------------------+ | Nicko van Someren, nbvs@cl.cam.ac.uk, (44) 223 358707 or (44) 860 498903 | +-----------------------------------------------------------------------------+