FMX.Forms.TCustomPopupForm.ContentControl
Delphi
property ContentControl: TControl read FContentControl write SetContentControl;
C++
__property Fmx::Controls::TControl* ContentControl = {read=FContentControl, write=SetContentControl};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | TCustomPopupForm |
Description
Specifies the control that is shown on the pop-up form.
If a pop-up form does not contain any visible control, then the pop-up form is totally transparent. Therefore, some visible control should be placed onto the pop-up form. This control is specified by the ContentControl property.
Note: A
ContentCtrl
control can be associated to aPopupForm
pop-up form using the Parent property of the control, like in the following example:ContentCtrl.Parent := ParentForm
. However, we recommend using the ContentControl property likeParentForm.ContentControl := ContentCtrl
, because TCustomPopupForm handling ContentControl takes into account the current scale and rotation of theContentCtrl
control.