Vcl.ComCtrls.TCustomUpDown.Associate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Associate: TWinControl read FAssociate write SetAssociate;

C++

__property Vcl::Controls::TWinControl* Associate = {read=FAssociate, write=SetAssociate};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomUpDown

Description

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