Table of Contents

Getting started with TMS FNC Blox ToolBar

Prerequisites

  • TMS FNC Core installed and the runtime package added to the project.
  • TMS FNC Blox installed.
  • A TTMSFNCBloxControl already placed on the form.

Add a toolbar

  1. Drop one or more toolbar components from the TMS FNC Blox palette page onto the form:
    • TTMSFNCBloxEditToolBar — clipboard, undo/redo, and edit commands.
    • TTMSFNCBloxFormatBlockToolBar — block fill, stroke, and shadow appearance.
    • TTMSFNCBloxFormatBlockTextToolBar — text font and alignment.
    • TTMSFNCBloxSelectToolBar — selection mode controls.
  2. Align each toolbar at the top of the form or inside a panel.
  3. Assign the BloxControl property of each toolbar to your TTMSFNCBloxControl instance.
{ Inside your form's OnCreate event: }
begin
  BloxEditToolBar1.BloxControl := BloxControl1;
  BloxSelectToolBar1.BloxControl := BloxControl1;
end;

Once linked, the toolbar controls reflect the current selection state of the diagram and issue commands directly to the control.

Next steps