606 views
in GUI Development by
Essentionally I have created a enum for view priorites, screens = 1, pop up screens = 0. So each time the user selects a new screen the old screen is removed and the new one is replaced with Core::Root.Add(screen, 1);, Whenever a pop up needs to be shown, its added at Core::Root.Add(popup, 0);

This should ensure that no matter what screen the user is on, whenever a pop up needs to be shown, it appears on top of the screens - however it doesnt always work, sometimes the view seems to be added behind the screen, which is obvoiusly not ideal - what am I doing wrong.

1 Answer

0 votes
by

Hello,

using the method Add() with the last parameter being 0 (zero) causes the passed component to be put in front of all other actually existing components. Why it doesn't work as expected in your case, it is difficult to say. Maybe, there is another component added immediately after the original component? Or you add the component not to the root object but to another component?

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

...