cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically choose startup screen

Priyank
Associate III

Hi, I have a situation where the startup screen is chosen based on a the value of a variable. Is there any way to programmatically add a if else for the startup screen?

1 REPLY 1
ferro
Lead

Hi @Priyank 

To this file
\gui\include\gui\common\FrontendHeap.hpp

add this function

 

 

virtual void gotoStartScreen ( FrontendApplication & app ) override final
{
    /*
        switch ( GetStartupScreen () )
        {
            case 1:
                app.gotoScreen1 ();
                break;
            case 2:
            default:
                app.gotoScreen2 ();
                break;
        };
    */

    // call here startup screen
    app.gotoYourScreen ();
}