Skip to main content

TdxCustomCalloutPopup.Popup(TWinControl) Method

Displays the callout popup for a specified control.

Declaration

procedure Popup(AOwnerControl: TWinControl); overload;

Parameters

Name Type
AOwnerControl TWinControl

Remarks

The AOwnerControl parameter specifies the control with which the popup aligns (also called the associated control).

The AOwnerBounds parameter specifies the associated control’s bounds – a rectangular area whose coordinates are relative to this control. Depending on the popup’s display style, the area serves one of the following:

  • A standard popup points its callout to the area’s center, according to the currently applied alignment.

  • A flyout panel popup fits its content into the area and pops up aligned along a specified area edge.

Call the first overloaded variant for more granular control over the pop-up position via the AOwnerBounds parameter. The second overloaded variant calls the first overloaded variant and passes AOwnerControl.ClientRect as the AOwnerBounds parameter.

The Popup method does the following:

Refer to the Close method description for details on how to close the callout popup.

See Also