IDE, IDEImages: Add comment on how to use

git-svn-id: trunk@63966 -
This commit is contained in:
martin 2020-10-07 23:40:22 +00:00
parent 0e58363f6e
commit 12b79cfbb0

View File

@ -72,6 +72,13 @@ type
function GetImageIndex(ImageSize: Integer; ImageName: String): Integer; deprecated 'Use the other overload instead.'; function GetImageIndex(ImageSize: Integer; ImageName: String): Integer; deprecated 'Use the other overload instead.';
function GetImageIndex(ImageName: String; ImageSize: Integer = 16): Integer; function GetImageIndex(ImageName: String; ImageSize: Integer = 16): Integer;
(* Images_nn
Each list contains images according to their default size at 96 PPI.
Any specific image is ONLY present in one of the Lists (and that list also has all the scaled versions of that image)
To use an image, either
- assign IdeImages.Images_nn to the ImageList property of a component
- IdeImages.Images_nn.ResolutionForControl[NN, Control].Draw(...) // where NN is the same as nn
*)
property Images_12: TLCLGlyphs read GetImages_12; property Images_12: TLCLGlyphs read GetImages_12;
property Images_16: TLCLGlyphs read GetImages_16; property Images_16: TLCLGlyphs read GetImages_16;
property Images_24: TLCLGlyphs read GetImages_24; property Images_24: TLCLGlyphs read GetImages_24;