Program icon confusion

From: Alan Mead (amead_at_comcast.net)
Date: 12/14/04


Date: Tue, 14 Dec 2004 16:25:19 -0600

I'm new to Windows programming and I'm confused.

I'm using Delphi 7 and my application has Delphi's default "images".. I
think they're icons? Specifically, there's an image at the top left of
the main form, on the task-bar, and next to my application when I view the
directory in explorer. I suppose when I figure out Windows installation
there will be an image associated with my program in the Start > All
Programs menu as well.

I'd like to replace these with my own icons.

I have been able to change the form so it shows an icon with this bit of
code (inserted into ShowForm):

icon.LoadFromFile('...');

Is this the preferred method? It seems like other Windows apps load icons
from the .EXE itself.

I followed some advice on a website and Projects > Options > Application >
Load Icon but this doesn't have any effect (what else am I supposed to
do?)

I also followed some advice on another website and found Tools > Image
Editor and was able to modify the icon in the resource file, but again,
this doesn't seem to have any effect.

So, I'm confused. Any help, pointers to better advice, etc. gratefully
accepted.

-Alan



Relevant Pages

  • Re: C:/Windows/Installer file bloated to over 38GB
    ... This is not directed to you, but is just a couple comments about the Installer folder. ... Almost all Windows executables have their icons embedded into the files, ... I'm guessing someone at MS was responsible for this idiotic function and/or programming requirement. ...
    (microsoft.public.windowsxp.general)
  • Re: How to fix bad icons
    ... the fuzzy appearance of the Icons if you use a previous version's OSB. ... programming. ... After searching google.groups.com and finding no answer, Richard Ahlvin ...
    (microsoft.public.office.misc)
  • missing graphics directory in vb .net standard 2003 install
    ... I am a new student in vb who is attempting to install the software on my ... In working through some programming examples it references ... icons which should be found in the Program Files/Microsoft Visual Studio ... Is the Graphics directory even available in the Standard ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Awkward Problem with FormEd
    ... >> is using 'C' and RISC OSLib. ... > RISC OS programming, so it's very well possible that I messed it up ... There was also the situation when the wimp received too many update requests ... if you update the contents of multiple icons, ...
    (comp.sys.acorn.programmer)
  • Re: Colours in MsgBox?
    ... button captions, or provide your own icons, etc. ... ONe of the arts of ... programming is knowing when to stop. ...
    (microsoft.public.word.vba.beginners)