575 views
in GUI Development by

Hi,

I am trying to dismiss a dialog and present a new dialog one after the other.

While using SwitchToDialog() with parameter aCombine as false, the 2 transitions seem to play together. i.e., both the old and new screen appear together for a moment

But when the same is performed individually with DismissDialog() and PresentDialog() with aCombine = false in PresentDialog(), dismiss and present happens separately one after the other.

Is there any way to achieve the same using SwitchToDialog() and any reason why setting aCombine as false does not work as expected in our case?

1 Answer

0 votes
by

Hello Kavya,

the parameter aCombine controls how actual operation (e.g SwitchToDialog) is combined with preceding operation. It doesn't control how SwitchToDialog should perform its own transition between the old and the new dialog. In case of SwitchToDialog such transition is always performed simultaneously - it is the switch. The parameter aCombine serves thus to group multiple, independent dialog operations together so they run all animations simultaneously.

If you you want to dismiss dialog1 and then present dialog2, then SwitchToDialog is not intended for this purpose. Use instead DismissDialog() and PresentDialog() in sequence. For example:

DismissDialog( dialog1, ..., false );
PresentDialog( dialog2, ..., false );

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

...