From 9ee20dbd4a49f0b422dfa9ffd7ec47ce665bbc06 Mon Sep 17 00:00:00 2001
From: dsiders
@@ -85,15 +93,25 @@ image sizes are loaded by calling the ThemeServices.GetStockImage method when theme services are available.
-Use the Width and Height properties to assign a different preferred size for -images in the list. +Applications do not need to create an instance of the class. Use the +DialogGlyphs function to access the singleton with glyph icons created and +filled in the implementation section. +
++Use the Width and Height select a different default size for images in the +list.
Use the DialogIcon property to access get the ordinal position in the image list for an icon using its TDialogImage image identifier.
+Create is the overridden constructor for the class instance. It +calls the inherited method on entry to initialize the storage for the class +and to enable image scaling. +
++Create initializes the internal array with the index positions for the glyphs +in the class. The default Width and Height for the icons are set to 32 +pixels. It registers image resolutions for the icons using 16, 24, 32, 48, +and 64 pixel image sizes. +
++DialogIcon is a read-only Integer property used to get +the ordinal position in internal storage where the image specified in +AIndex is stored. +
++The AIndex argument is a value from the TDialogImage enumeration, +and contains an identifier used to locate the corresponding image. +
++For example: +
+
+Image := TImage.Create(AOwner);
+Image.Parent := AParent;
+Image.Images := DialogGlyphs;
+Image.ImageIndex := DialogGlyphs.DialogIcon[idDialogShield];
+Image.Proportional := True;
+Image.Stretch := True;
+Image.StretchOutEnabled := False;
+Image.Center := True;
+
+DialogGlyphs is a TDialogImageList function which -returns the image list with the glyphs used for dialog icons. +returns the image list with the glyphs used for dialog icons. DialogGlyphs is +used to implement TTaskDialog and the DefaultPromptDialog routine.
+
+DialogGlyphs replaces the deprecated GetDialogIcon routine in the
+
+Image := TImage.Create(AOwner);
+Image.Parent := AParent;
+Image.Images := DialogGlyphs;
+Image.ImageIndex := DialogGlyphs.DialogIcon[idDialogShield];
+Image.Proportional := True;
+Image.Stretch := True;
+Image.StretchOutEnabled := False;
+Image.Center := True;
+