"ancestorPanel"

This attribute is used for child panels and returns a pointer to the panel which opened it.

Synopsis

ancestorPanel(shape);

Parameter

Parameter Description
shape A shape pointer to the panel which opened the child panel.

Description

When this panel is a child panel, the function returns a pointer to the panel which opened it. If the panel is not a childpanel a null shape (nullptr) is returned.

Assignment

Panel