Need to detect the Parent Form in Delphi (FireMonkey 3) for any Control on this form.
What is the easiest way for it?
Need to detect the Parent Form in Delphi (FireMonkey 3) for any Control on this form.
What is the easiest way for it?
Copyright © 2021 Jogjafile Inc.
The
Root
property of a control points to the uppermost Parent.Root is of interface type
IRoot
. CallingGetObject
on it results in the Form. The Form can be of typeTCustomForm
,TCustomForm3D
,TForm
,TForm3D
, all which haveTCommonCustomForm
as ancestor: