Hello,
i have an intro-screen which has different stages:
first stage: A warpimage getting smaller and smaller
second stage: The warpimage disappeares and an other warpimage is set visable, also getting scaled
third stage: second warpimage fly away
After the intro-screen the main screen comes up in the device and when shutting the device down the same intro-screen comes as outro.
That works fine. Now i needed 2 different versions of the intro, showing 2 different bitmaps in the first stage. This is handled with a global varibale like discribed here: how to add global variable in GUI - Ask Embedded Wizard (embedded-wizard.de)
I use the init() to differentiate, when global variable is set, use bitmap1 else use bitmap2.
Info: I generated the set-function of the gobal variable but nothing changes when try to set it from the device so i generated a property with set-function which set the gobal variable -> that worked.
The first intro always workes as i want, showing the different bitmaps depending on setting or not setting the gobal variable from the device.
My problem: After the main screen is shown and wanted to shut the device down, the first stage of the intro (used as outro) sometimes is not shown, but the other stages are shown everytime.
Everytime i enable a screen i remove others first with: rootObject.Remove(MainScreen) and then again creating new instance with: IntroScreen = new Application::IntroScreen; rootObject.Add( IntroScreen, 0 );
So when coming in main screen, intro screen get removed and again going from main screen in intro screen (as outro) should be as first time called intro screen.
But i have two different behavour, first time it works always correct and after main screen sometime it works sometimes not, but just the first stage, the other 2 stages always works. And i can see with debugging that init() is also called again. Curious is that nothing is shown in the first stage when not working, not bitmap1 and also not bitmap2, nothing, but stage 2 and 3 is shown correct. And in the Init() is just a if else so one of them should be shown, also tried with setting visible but nothing changes.
Thank you for helping.