Table of Contents

TMS FNC Localization ComboBox

TTMSFNCLocalizationComboBox is a drop-in language picker. Place it on a form and it automatically lists the application's available languages and selects the active one; when the user picks a different entry, it switches the application language for you. It works together with the Localizer — no event wiring is required.

Language combo box showing the active application language selected Language combo box showing the active application language selected

Documentation

Start here Use when
Getting started You want a working language picker quickly.
User guide You want the details: what it lists, and how selection switches the language.
API reference You want class, property, method, and event details.
Release notes You want the ComboBox change history.

Quick start

Create a language picker that lists the languages loaded by the localizer:

procedure TForm1.FormCreate(Sender: TObject);
begin
  { Usually dropped on the form at design time; shown here in code. }
  FLanguages := TTMSFNCLocalizationComboBox.Create(Self);
  FLanguages.Parent := Self;
  FLanguages.Position.X := 16;
  FLanguages.Position.Y := 16;
  FLanguages.Width := 200;

  { No population code is needed: the combo lists the available languages and
    selects the active one on its own, and switches the language when the user
    picks a different entry. Make sure a localizer has loaded the translations. }
end;

Key classes

Class Role
TTMSFNCLocalizationComboBox The language-selection combo box.

See also