Table of Contents

TMS FNC Control Picker Guides

TTMSFNCControlPicker is a generic drop-down picker that can host any visual control in its popup. The collapsed state displays a text value you supply; the popup opens when the user clicks the button and closes when the embedded control raises the OnSelect callback. Use it to build custom colour wheels, tree pickers, calendar pickers, or any widget that doesn't fit a standard combo box.

Topics

Topic Use when
Embedded control You need to host a custom control in a picker drop-down and synchronize the displayed value.

Key properties

Property Purpose
DropDownControl The control instance hosted inside the drop-down popup.
DropDownSizeMode How the popup is sized: smFixed, smAutoWidth, or smAutoHeight.
DropDownWidth / DropDownHeight Explicit popup dimensions when DropDownSizeMode is smFixed.
Text Text shown in the collapsed picker button.
OnGetPickerText Event that returns the display text from the embedded control's current state.
OnSelect Fires when the embedded control signals that a value has been chosen.

See also