BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIcon - Icon image is not valid

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
m
Guest





PostPosted: Fri Feb 03, 2006 1:05 am    Post subject: TIcon - Icon image is not valid Reply with quote



Hi,

I'm trying to load a typical icon (16x16) using TIcon and I get an error
"Icon image is not valid." The icon image is valid and readable by D5,
because I can load it into a TImageList component using the IDE's Image
List Editor.

Anybody know why icons might not load into TIcon and how to get around
that? What I'm trying to do overall is to load some icons from disk and
store them in a TImageList component, and those icons need to be loaded
programmatically since they icons might change over time. E.g. I just
parse a dir looking for .ico files and load them.

Any help would be appreciated.

Thanks

Mark
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.