API:Vcl.ComCtrls.TUpDown.Associate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Associate: TWinControl read FAssociate write SetAssociate;

C++

__property Associate;

Properties

Type Visibility Source Unit Parent
property published
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TUpDown

Description

Specifies a companion control for the up-down control.

Vcl.ComCtrls.TUpDown.Associate inherits from Vcl.ComCtrls.TCustomUpDown.Associate. All content below this line refers to Vcl.ComCtrls.TCustomUpDown.Associate.

Specifies a companion control for the up-down control.

Use Associate to link the up-down control to a companion control (sometimes called a buddy window). The up-down control automatically positions itself on the outer edge of the companion control and adjusts its height to match the companion control.

At design-time the companion control does not move with the up-down control. To keep the up-down control and its companion control together at design time, either multi-select both controls before moving them, or first move the companion control and then reset the Associate property for the up-down control.

See Also