Wilfried Mestdagh wrote:
> The problem is the Icon. I can eventually load an icon at runtime, but I
> like it to have at compile time (then the image file has not to be
> distributed). If I try this:
>
> IconData.hIcon := LoadImage(hInst, 'MAINICON', IMAGE_ICON, 16, 16,
> LR_DEFAULTCOLOR);
>
> Then the default Delphi Icon is loaded, but I cannot change. Any idea
> how to do this ? I'm using Delphi 7.
You can change the icon in the project options dialog. Make sure the
following line appears in your DPR file or else the dialog page won't be
functional.
{$R *.RES}
--
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi