Article View: borland.public.delphi.language.objectpascal
Article #32462Re: Incorrect application Icon
From: Guy Gervais
Date: Sat, 23 Nov 2002 15:41
Date: Sat, 23 Nov 2002 15:41
20 lines
1978 bytes
1978 bytes
On Sat, 23 Nov 2002 11:15:18 +0100, Marjan Venema <info@bjmsoftware.OhNoNotThis.com> wrote: >> Windows shows the wrong icon for my application in the Windows Explorer and >> on Short Cuts. When I start the program it shows the correct icon in the >> taskbar and at the left-top corner of my application window. > >I had this once. Tracked it down to a third-party component for which I did >not have the source. When I removed the component from my app, it was ok, >when I put it the component back in, the wrong behaviour reappeared. The >people supplying the component solved it, but didn't tell me how... Do you have additional icons added to your .exe (in .res files)? Delphi stores them by alphabetical order and includes the default icon as MAINICON. If you've added icons with names coming before MAINICON, they'll be the ones showing up in Explorer (which uses the first icon by default). I've solved that problem in one of my apps by prefixing all my icon names (in the .rc file) with Z.
Technical Details
Message-ID:
<l68vtuc2q9urj2uhm8binorv11ptd60373@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mailReferences:
<3dde481f@newsgroups.borland.com> <VA.0000011f.05237ebe@bjmsoftware.ohnonotthis.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,91af8ede083ea50 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2002-11-23 08:16:05 PST From: Guy Gervais <ggervais77@hotmail.com.no.spam> Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: Incorrect application Icon Date: Sat, 23 Nov 2002 10:41:20 -0500 Message-ID: <l68vtuc2q9urj2uhm8binorv11ptd60373@4ax.com> References: <3dde481f@newsgroups.borland.com> <VA.0000011f.05237ebe@bjmsoftware.ohnonotthis.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.200.134.35 X-Trace: newsgroups.borland.com 1038066078 24.200.134.35 (23 Nov 2002 07:41:18 -0800) Lines: 22 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!fu-berlin.de!news.uni-x.net!newsgroups.borland.com!not-for-mail