320 views
in Embedded Wizard Studio by
Is it possible to add (embedd) Views to an Outline at runtime?
I have expected to find something like Outline.AddView(...).

Best Regards
Giuseppe

1 Answer

0 votes
by

Hello Giuseppe,

of course, it is possible to add Views to an Outline Box at runtime - similar as you add them during design time within the Composer.

The following steps are necessary to add a View programatically so that it is managed by an Outline Box object.

  • Create the View by using the new operator
  • Set the property 'Embedded' of the new View to 'true'
  • Add the View to the same component where the Outline Box is and ensure that the View is directly above the Outline Box (Z-Order). This can be controlled by the second parameter of Add().

Please note, the Views are always added to the Component and never to the Outline Box. The Outline Box is just an auxiliary container that manages all views above it (with property 'Embedded' == true).

Best regards,

Manfred Schweyer.

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

...