The DisableImage function is not really complex. To create the TImageListEx component, you have to derive it from the standard TImageList component and then create the DisableImage function for disabling an image and the AcquireDisabled procedure that uses the DisableImage function to disable all images from another image list. (If you add it to an application that already uses the standard TImageList component, it won't increase the size of the executable at all, and if you add it to an application that doesn't use the standard TImageList component, the overhead is only 2 KB.) It's extremely fast, taking only milliseconds to disable all images in an image list, even when there are number of images. dfm file and of the entire application, especially in large applications that use a lot of glyphs. It can drastically reduce the size of the. It eliminates the need for adding the disabled glyphs to an additional TImageList component at design time. It eliminates the need for creating disabled glyphs. There are several benefits of the TImageListEx component: The TImageListEx component is a TImageList descendant that can use the images from another image list to generate disabled images, which can be used on toolbars and other user interface elements.
0 Comments
Leave a Reply. |