[fpc-devel] new resource support question
Giulio Bernardi
ugilio at gmail.com
Fri Dec 25 19:56:38 CET 2009
Il 25/12/2009 17:05, Paul Ishenin ha scritto:
> Hello, FPC developers' list
>
> I have a question regards cursor and icon resource types.
>
> When icon resource is used in rc file it is compiled into icon group and
> several icon entries (as ico file has). Therefore each ico file is
> splitted into entries which have own resource IDs. And when we want to
> load this resource we need to load RT_GROUP_ICON + N*RT_ICON resources.
>
> I see that fpc-res has groupiconresource unit but from the code I can't
> quickly understand what does it do (I guess it performs writing of icon
> resources). My question is whether fpc already has a code to merge icon
> data into one stream?
I have no fpc available at the moment. However, you can build yourself
the fcl-res documentation (run makehtml.sh) in xml directory, inside fcl-res
directory. There are examples for groupiconresource too.
In general, if you need to use resources at runtime you should check Microsoft
documentation about resources. If you need to manipulate resources (e.g. read
a .ico file in a series of resources, or the other way around) use fcl-res.
Giulio
More information about the fpc-devel
mailing list