LMD-Tools Font Image List Guide


Font Image List Replicas


TLMDFontImageList component 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 lists are supposed to be used as sources of disabled or hot icons in control, which provides the corresponding support. For example, the following VCL controls provide properties for linking additional image lists:

 

TToolBar

DisabledImages and HotImages properties.

TButton

DisabledImages property.

TListView

LargeImages and SmallImages properties.

etc.


 

Using replica image lists

 

Replica image list can be created by clicking on 'New Replica' component context menu item.

 

clip0020

 

After creation the replica immediately becomes selected in the designer, and so, its properties becomes visible in Delphi's Object Inspector. Probably, this is a good time to rename the replica to somewhat meaningful, for example - DisabledImages.

 

clip0021

 

All created replicas can be found in the parent image list's context menu. Clicking on the corresponding item will select the replica component in Delphi's designer and show its properties in Object Inspector.

 

clip0022

 

Deletion of a replica is performed by clicking on the same context menu item while holding Ctrl key pressed.

 

clip0023

 

As well, the replica can be deleted using Delphi Structure view; select the replica in the Structure view and press Del key or use the Edit|Delete item from IDE main menu.

 

Changing images style

 

The main goal of creating replica image lists is to provide icons style, which is different from the style of icons in the parent font image list. The component provides two possibilities to achieve this: change size (Width, Height or Margin) and/or change Color.

 

Size related properties can be synchronized with the main image list by setting ParentSize property to True any point in time. The property is also True by default and will be reset to False, if the value of Width, Height or Margin property will be changed.

 

The color can also be synchronized with the parent font image list using ParentColor property, which is False by default. 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 the component provides OnAdjustColor event.