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:
Stores information about the control assigned to the PopupControl property (the control’s BoundsRect, Parent, Visible, and other property values). The callout popup control restores this information when the popup closes.
Embeds the PopupControl into the callout popup and displays the popup with the showing animation.
Fires the OnShow event once the animation is finished.
Refer to the Close method description for details on how to close the callout popup.