651 views
in Embedded Wizard Studio by
Hello,

I have some issues managing multiscreen application with a several levels of menu. The main problem is to open the new window and same time destroy the existing one. Not like the dialogs just put in on the top of the screen.

So help me pls to find out the best way to do it.

I haven't found any examle of that. All examples simply use dialogs or screen shifting.

Thank you.

1 Answer

0 votes
by

Hello,

I assume you are creating the windows dynamically. In such case to show a new window use the function Add() as shown below:

var SomeUnit::SomeGUIComponent window = new SomeUnit::SomeGUIComponent;

// Show the window within the root component
GetRoot().Add( window, 0 );

[...]

// or show it in context of the actual component?
Add( window, 0 );

To remove a previously presented window you use the function Remove() with the affected window as parameter:

// Remove the window always from its actual owner.
window.Owner.Remove( window );

Have you seen the section The classic approaches? Maybe it helps you further. Also interesting is the section Compose the component programmatically.

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

...