> 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).

Why not use a resource linked to your application ?
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


----- Original Message ----- 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, February 19, 2007 10:51 AM
Subject: Loading image at design time


> Hello,
>
> Subject a little confusing but I could not think on something better. I
> try to explain. I have a little application that does basically not
> mutch more than displaying a tray icon. A click on it let it take
> action. I try to minimize the size of the executable, it is around 14
> KB, so that looks good :)
>
> 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.
>
> -- 
> Best regards,
>  Wilfried
>  http://www.mestdagh.biz
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to