Skip to main content
Senior
February 14, 2025
Solved

Programatically choose startup screen

  • February 14, 2025
  • 2 replies
  • 585 views

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?

Best answer by ferro

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 ();
}

 

 

2 replies

ferro
ferroBest answer
Lead
February 14, 2025

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 ();
}

 

 

GaetanGodart
Technical Moderator
February 18, 2025

Hello @Priyank ,

 

Did Ferro's comment answered your question?

 

Regards,