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 

Resource icon index problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Richard Bradbrook
Guest





PostPosted: Wed Jun 28, 2006 8:34 pm    Post subject: Resource icon index problem Reply with quote



Hi,

Any ideas how to specify the index given to icons in a resource?

I don't mean the name of the icon, just the ordinal index?

Basically I have an .rc file I add to my project with an icon I use for file
associated with the app.
It's an XP compatible one, using 4bit, 8bit and 32bit variations of a single
icon.
They're indexed 1... 9 and I've called it '_FILEICON' - it has to be
alphabetically after 'MAINICON' or windows will use it for the main app icon
instead of 'MAINICON', but that's another story!

The problem here is that my main icon has icon variations 1...8 and when my
'_fileicon' is merged, the next available index is 9.
Instead of number 1 from _fileicon taking index 9, it leaves the original
number 9 alone and number 1 gets index 10.

That totally screws up the indexing and XP then won't see/find the true
colour icons - because they MUST be in a certain order.

So basically it looks like this:

Main Icon: 1 (32x32x4), 2 (16x16x4), 3 (48x48x8), 4 (32x32x8), 5 (16x16x8),
6 (48x48x32), 7 (32x32x32), 8 (16x16x32).

File Icon: 10 (48x48x4), 11 (32x32x4), 12 (16x16x4), 13 (48x48x8), 14
(32x32x8), 15 (16x16x8), 16 (48x48x32), 17 (32x32x32), 9 (16x16x32).

When it should look like this:

Main Icon: 1 (32x32x4), 2 (16x16x4), 3 (48x48x8), 4 (32x32x8), 5 (16x16x8),
6 (48x48x32), 7 (32x32x32), 8 (16x16x32).

File Icon: 9 (48x48x4), 10 (32x32x4), 11 (16x16x4), 12 (48x48x8), 13
(32x32x8), 14 (16x16x8), 15 (48x48x32), 16 (32x32x32), 17 (16x16x32).

I either need Borland to fix this, or I need some way of telling it that
_FILEICON's indexing should start from 9 and not let it correct the indexes
(and get it wrong) when it tries to merge them.

Thanks,

Richard.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.