Table of Contents

Getting started with TMS FNC Bitmap Container

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.

Add the component

  1. Drop TTMSFNCBitmapContainer from the TMS FNC UI palette page onto a form or data module.
  2. Open the Items collection editor.
  3. Add items, set Name to a unique string, and assign a bitmap to Bitmap.

Connect to a control

Assign the container to any FNC control that has a BitmapContainer property:

TreeView1.BitmapContainer := BitmapContainer1;

The control then references images by name:

Node.ExpandedImageName := 'folder-open';
Node.CollapsedImageName := 'folder';

Load images at runtime

var
  Item: TTMSFNCBitmapItem;
begin
  Item := BitmapContainer1.Items.Add;
  Item.Name := 'logo';
  Item.Bitmap.LoadFromFile('logo.png');
end;

Next steps

  • Guides — URL downloading, SVG bitmaps, DPI scaling.
  • API reference — full class reference.