555 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 - 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

...