Richard Bradbrook Guest
|
Posted: Wed Jun 28, 2006 8:34 pm Post subject: Resource icon index problem |
|
|
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. |
|