[Pas2js] Parent and Childrem

Michael Van Canneyt michael at freepascal.org
Fri Oct 16 00:07:15 CEST 2020

On Thu, 15 Oct 2020, heliosroots wrote:

> I want to prevent a widget from receiving another one as a relative, only one
> that corresponds to a certain class .... "SetParent" should be protected
> .....

Good idea. Some components do not allow children.

I will not make setParent protected, but will introduce a 
function AllowChild( aWidget : TWebWidget) : boolean;


More information about the Pas2js mailing list