Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-10

Parent and Childrem

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to helioroots roots
helioroots roots wrote
is there any way to restrict a child who does not have certain classes?

What parent, child, what classes ?

I'm a parent, my daughter takes any classes she wants, there are no restrictions... ;-)

Michael.

Reply by email

Michael Van Canneyt
to heliosroots
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;

Michael.

Reply by email