479 views
in GUI Development by
Suppose I have a  UI control, say a customized button that is used in various dialogs. At the runtime, inside the UI control class, how can I get the dialog object in which the UI control is contained?

1 Answer

0 votes
by

Hello Thanseer,

probably the variable Owner is what you are looking for. For example, evaluating Button.Owner will result in the component containing the button. See also Understand the view tree and the Owner relationships.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...