LMD-Tools Font Image List Guide


TLMDReplicaImages


type

  TLMDReplicaImages = class(TLMDFontImagesBase);

 

The secondary child font image list component class. Allows to create secondary replica image lists. Replica lists are automatically filled with the same set of icons as their parent image list, but allow to specify different values for size (Width and Height), Margin or Color properties. Replica image list can be created by clicking on 'New Replica' component context menu item.

 

Refer to Font Image List Replicas topic to learn more about replica image list component.

 

property ImagesSource: TLMDFontImageList;

Points to the main (parent) font image list. This property is set automatically when the font image list with replicas is loaded from the dfm file.

property ParentColor: Boolean;

Determines whether the color should also be synchronized with the parent font image list. False by default, because the Color default value for replica image lists is clBtnShadow, which is a suitable color for disabled images.

 

In ParentColor mode the replica use the parent image list color, and, as well the redefined colors of individual items. Otherwise, individually redefined item colors are ignored. For more complex strategies OnAdjustColor event should be used.

property ParentSize: Boolean;

Determines whether the size related properties should be synchronized with the main image list. The default property value is True, but will be reset to False, when the values of Width, Height or Margin properties are changed.