231 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

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

...