TRVChatFileIconsProperties.IconColor, IconSize, IconPadding

<< Click to display table of contents >>

TRVChatFileIconsProperties.IconColor, IconSize, IconPadding

These properties allow you to set the icons for files attached to messages.

property IconSize: TRVPixel96Length;
property IconColor: TRVColor;
property IconPadding: TRVPixel96Length;

An icon depends on the type of the attached file, which is determined by its extension. These properties define the appearance of the icons that the chat draws automatically. Such icons are used if no images are provided in the Picture* properties.

The icons appear as symbols inside a circle. IconSize defines the icon's height and width, that is, the circle's diameter. The size of the symbol inside the circle is IconSize - IconPadding * 2. The symbol is drawn using IconColor, and the circle is filled with the color used to display the speaker's name.

If ScalePictures = True, then IconSize also affects the images specified in the Picture* properties.

IconSize and IconPadding are measured in pixels, where 1 pixel = 1/96 of an inch. The actual size is calculated based on the document’s DPI value.

Default values

IconColor: rvclWhite

IconSize: 50

IconPadding: 10