I needed wxImage and wxImageList components for a recent project, and I wanted to define the images in wxSmith, and have the image files compiled directly into the source code.
So I created a new plugin for wxSmith.
This plugin provides wxImage and wxImageList as components for wxSmith, and allows the images to be selected at design-time, and to compile the images directly into the source code file. This allows you to distribute your program without the need for an external image file or external resource file.
The images are all stored internally as XPM image files. The images may be stored directly in the source code C++ file, or used as a "#include" file.
The wxImage component is normally used to hold small-to-medium sized images, but is capable of storing any size image. However, larger images (for example 400 x 400 pixels) will show a noticible slowing of the wxSmith editor.
The component wxImageList has an integrated image-list-editor dialog that lets the programmer to add or delete images from an image-list, and to set an optional transparent color for added images.
For more info, see the Readme.txt file inside the zip.
This code has been developed and tested in MS Windows, but I think it should work under other OS's with few changes.
As always, I welcome any suggestions for improvement. Feel free to use it (or abuse it) as you see fit.
Ringo
[attachment deleted by admin]