Inno-Setup-issrc/Projects/Src/IDE.ImagesModule.pas
Martijn Laan 0af429b135
Fix 22309edc. Move the virtual image lists back into MainForm because otherwise they don't really work. From https://docwiki.embarcadero.com/RADStudio/Sydney/en/Supporting_high-DPI_images_with_the_Image_Collection_and_Virtual_ImageList_components under Best Practices:
"A TVirtualImageList should always be placed on a form, not a data module." Strange that it doesnt complain when you do this anyway :/

Also improve LightToolbarVirtualImageList: don't actually need design-time auto fill so turn it off in the form and instead on at run time.
2024-08-11 16:00:15 +02:00

27 lines
618 B
ObjectPascal

unit IDE.ImagesModule;
interface
uses
System.SysUtils, System.Classes, System.ImageList, Vcl.ImgList, Vcl.Controls,
Vcl.VirtualImageList, Vcl.BaseImageCollection, Vcl.ImageCollection;
type
TImagesModule = class(TDataModule)
BuildImageList: TImageList;
LightToolBarImageCollection: TImageCollection;
DarkToolBarImageCollection: TImageCollection;
LightMarkersAndACImageCollection: TImageCollection;
DarkMarkersAndACImageCollection: TImageCollection;
end;
var
ImagesModule: TImagesModule;
implementation
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
end.