From c875cc8f8ef1a8d3f79432727a3656cb4f255ce4 Mon Sep 17 00:00:00 2001
From: dsiders
- TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False (the default), the first TCustomForm instance found in the control hierarchy is used. Otherwise, all Parent controls in the hierarchy are examined until a Parent control has not been assigned. + TopForm indicates if the top-most form instance in the hierarchy is needed. When set to False, the first TCustomForm instance found in the control hierarchy is used. Otherwise, all Parent controls in the hierarchy are examined until a Parent control has not been assigned.
The return value can contain the value in Control if it is a TCustomForm descendant and no other form instances are used in the control hierarchy. This is Delphi compatible.