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
Rootproperty of a control points to the uppermost Parent.Root is of interface type
IRoot. CallingGetObjecton it results in the Form. The Form can be of typeTCustomForm,TCustomForm3D,TForm,TForm3D, all which haveTCommonCustomFormas ancestor: