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

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

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint