Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
How to assign application icon wih more than 256 colors ? Posted by nguyendiep on 11 Oct 2004 at 10:40 PM
Delphi compiler allows assign icon to forms or application,
but icons with 256 colors or lower.
Could you help me create application with 16-bit color icon ?
Report
Re: How to assign application icon wih more than 256 colors ? Posted by zibadian on 11 Oct 2004 at 11:07 PM
: Delphi compiler allows assign icon to forms or application,
: but icons with 256 colors or lower.
: Could you help me create application with 16-bit color icon ?
:
Icons can only have 256 colors. That is the way they are coded from the early days of windows. Other than changing windows itself you cannot create a 16-bit color icon.
Report
Re: How to assign application icon wih more than 256 colors ? Posted by netgert on 12 Oct 2004 at 6:36 AM
: : Delphi compiler allows assign icon to forms or application,
: : but icons with 256 colors or lower.
: : Could you help me create application with 16-bit color icon ?
: :
: Icons can only have 256 colors. That is the way they are coded from the early days of windows. Other than changing windows itself you cannot create a 16-bit color icon.
:
ive made a 32-bit alpha-transparency icon for my program. i cant remember if selecting it with delphi's project option worked or not (i think it reseted it to 16-bit)... another possibility is to edit the applications resource after compilation and replace MAINICON with the new icon... that will surely work
but replacing the icon in .rc or .res might cause the linker to fail to link it into the executable, because linker expects 16-bit resource that doesnt allow >256 icons, bitmaps etc
i think delphi 7 allows 32bit icons (even 96x96) but you have to put it into a .res file (.rc compiler is still 16-bit )

NetGert[/italic]





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.