RAD Studio VCL Reference
|
Returns the current entity being edited by the form designer.
function GetRoot: TComponent;
__fastcall TComponent * GetRoot();
Call GetRoot to obtain the object the form designer is working on. If this object is a descendant of TCustomForm, GetRoot returns the value of the Form property.
Use GetRoot rather than the Form property, to ensure that code works even when editing a data module, remote data module, active form, or other entity that is not a descendant of TCustomForm.
ContainerWindow
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|