HP Forums
CHOOSE instruction - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: CHOOSE instruction (/thread-300.html)



CHOOSE instruction - Bob Frazee - 01-01-2014 04:29 PM

Code:
//Variables
ChooseMain;

//-----------------------------------------------------------------
EXPORT TestApp()
BEGIN
END;

VIEW "Start TestApp",START()
BEGIN
  RECT();
  WAIT(2);
//  STARTVIEW(-4,1); //Home View
  CHOOSE(ChooseMain,"TESTAPP MAIN MENU","TestApp Selection...");
  CASE
    IF ChooseMain==1 THEN STARTVIEW(-7,1); END; 
  END;
WAIT(1);
MSGBOX("Exit Subroutines");
END;

This code is part of an App. It will run in the emulator. It is a copy of the Solve App. I am attempting to superimpose the CHOOSE box on top of the RECT() to provide a clean background. It will superimpose itself on top of a STARTVIEW instruction, but not the RECT(). Is there any way to do this? Also, starting the App using either the App Icon or the soft Start button, superimposes it on the same STARTVIEW screen. If I start the App using the View button, it superimposes the CHOOSE box on a different STARTVIEW screen. Any information on how this stuff operates would be appreciated. Thanks
rcf


RE: CHOOSE instruction - Eddie W. Shore - 01-01-2014 08:19 PM

The apps I believe will always start at their "home screen".

Assuming your info page is blank, we could use the Info View - which only leaves the top and menu bars.

Code:
//Variables
 ChooseMain;

 //-----------------------------------------------------------------
 EXPORT TestApp()
 BEGIN
 END;

 VIEW "Start TestApp",START()
 BEGIN
 
// View info page - assuming it's blank 

STARTVIEW(6,1);

   CHOOSE(ChooseMain,"TESTAPP MAIN MENU","TestApp Selection...");
   CASE
     IF ChooseMain==1 THEN STARTVIEW(-7,1); END; 
   END;
 WAIT(1);
 MSGBOX("Exit Subroutines");
 END;


If there was a code for STARTVIEW that let's the user see the terminal screen, that would be perfect, but I don't think there is one.