Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Application icon problem

207 views
Skip to first unread message

Denis Grant

unread,
Jul 31, 1998, 3:00:00 AM7/31/98
to
All of a sudden my application icons are being replaced by the torch
icon in Delphi 3.

I've tried deleting .RES files, deleting .DCU files and use:

Application.Icon := Application.MainForm.Icon in DPR
and
Application.Icon.LoadFromFile('desired.ico') in DPR

these all work as expected when the application is running but Windows
still shows the torch icon when creating a shortcut or in the explorer
window.

does anyone know what causes this? I've tried everything that I can
think of.


Ladislav Antal

unread,
Aug 1, 1998, 3:00:00 AM8/1/98
to
I use Win95 and Delphi3
1.I cannot change the application icon in IDE. It changes, but on execution
in program panel appears the default Delphi torch icon.
2.After closing my program, the button with the icon remains in program
panel nearby the START button. After a click on the button it dissapears.

What can be wrong ?

Thanks for every advice for advance

Robert Meek

unread,
Aug 1, 1998, 3:00:00 AM8/1/98
to
When this same problem happened to me, it was because I had also set the
Main auto-created form's icon to a separate and different icon then the App
icon. I thought the app icon would then only show up on the desktop, etc.,
but in D3 at least I had to make sure both were the same. Haven't checked
it yet in D4.
Ladislav Antal wrote in message <6pvngq$rj...@forums.borland.com>...

Denis Grant

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to
Robert Meek wrote:

> When this same problem happened to me, it was because I had also set the
> Main auto-created form's icon to a separate and different icon then the App
> icon. I thought the app icon would then only show up on the desktop, etc.,
> but in D3 at least I had to make sure both were the same. Haven't checked
> it yet in D4.

Nothing has worked. I've tried everything I can think of to stop the torch icon
replacing the Application icon. The icon I want shows up on the task bar in Win
95 but Windows uses the torch icon whenever it extracts one to make a shortcut.
Also InstallShield extracts the torch as well!


Richey / Delphi-Box

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to
Hi,
I didn't follow this thread before, so it's a
shot in the dark, but:
For what I found out, Delphi uses the
first icons in an alphabetically sorted list
of all icons in the app. So, if you add a
resource file or such and one icon has a
name which would be listed before
"MAINICON" (for example "ICON1"),
this one would show up.

Richey

___________________________________________________
Richard Fellner (emails_to_...@bigfoot.com)
Find INF-Tool, the *special* setup software or the Resource-Grabber
(collects button images,icons etc. from other EXE/DLL's on your PC)
at www.user.xpoint.at/r.fellner/ ! Or visit the "DELPHI-BOX", one of
the biggest Delphi starting points worldwide (1000+ links and infos) !

Robert Meek

unread,
Aug 5, 1998, 3:00:00 AM8/5/98
to
You could also "torch" the torch!
r.fellner at bigfoot.com (Richey / Delphi-Box) wrote in message
<35c7fc19...@forums.borland.com>...

Denis Grant

unread,
Aug 7, 1998, 3:00:00 AM8/7/98
to
I've tracked this problem down to a unit I have adapted from one I picked up on the
web.

When the unit is included in the project Windows uses the torch icon (it's the old
torch I think, from Delphi 1). When I don't include it the torch goes away.


Richey / Delphi-Box wrote:

> Hi,
> I didn't follow this thread before, so it's a
> shot in the dark, but:
> For what I found out, Delphi uses the
> first icons in an alphabetically sorted list
> of all icons in the app. So, if you add a
> resource file or such and one icon has a
> name which would be listed before
> "MAINICON" (for example "ICON1"),
> this one would show up.
>
> Richey
>

Jim O'Brien

unread,
Aug 10, 1998, 3:00:00 AM8/10/98
to
In article <35C1351D...@compuserve.com>, Denis Grant wrote:
> does anyone know what causes this?
>
Explorer picks up the first icon in alphabetical order in the file.
Try naming your icon AAAAAAMYICON or something like that.

--
Mon, 10 Aug 1998 16:01 EDT
Jim O'Brien, R&D, PTT, Inc.
wiz...@remove-this-prefix.ptti.com +1 (212) 972-1702


Denis Grant

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
The problem was caused by a component called TRichPrinter (by G.
Wolsink).
When I removed the component (from 2 applications) the problem went away
in both.
I don't have the time at the moment to look at it so I am leaving
TRichPrinter out of my applications.
0 new messages