delphi - Create TImageList by specifying paths only -
In Delphi 2007, the images are loaded in a TImageList at design time. This presents the following problem:
- I have a folder in which I am using in my application Graphics
- whenever I want to change, say, ' There is also a method (component, compile script, ...) to automatically perform steps 2 and 3, which only specifies the path of graphics design time, and Stvik causing a dependence on graphic files?
You can create a descendant of TImageList and you can add that kind of logic there.
The components do so by referring to the pictures inside a TImageList, by indexing, the type of property of an imagepath type of your descendant TStrings, which is formatted in such a way, will be easy to:
# = file name
and maybe add a property
Then after loading that component, it will automatically convert those images Can reload in memory from
You can also make it a design-time expert who loads images in the designer.
- Jeron
Comments
Post a Comment