Description:
Users of my TreeList can select nodes by checking them. I've implemented this feature via state images. The state image list contains the "checked" and "unchecked" images. However, they are not the same as the images used by the CheckEdit control when skins are enabled. I want to use your skin images. Is it possible to access them programmatically?
Answer:
The solution described below uses inner APIs that may be changed in the future. That is why the correct solution here is to create a custom skin and manually copy required images from this skin folders.
Yes, it's possible. Note that a skin image may contain several elements. For example, the check box image consists of 12 icons for different checkbox states. Individual icons are accessible via the SkinElement.Image.GetImages function. Please explore the attached sample project.
See Also:
How to obtain the color of a particular control's element when skins are used
How to convert a standard color to a color which corresponds to the current skin
How to change one skin element in all available skins