Post Reply 
HP48G soft menu toggle: How?
07-27-2023, 03:41 PM
Post: #13
RE: HP48G soft menu toggle: How?
There are several ways to approach this. If you want to use the same "flag 60" mechanism that the Equation Library uses, something like the following might work if you need a custom menu and don't want to use the pre-existing one that comes with the Equation Library:

Code:
SETMENU
\<<
  @ Place the MakeStdLabel and MakeBoxLabel SYSEVAL codes on the stack
  #3A328h #3A38Ah

  @ If flag 60 is set, SWAP the two SYSEVAL codes
  60 FS? ::SWAP IFT

  @ Create the appropriate GROB for SI
  "SI" SWAP SYSEVAL

  @ Append the code to be run when SI is pressed
  \<< 60 CF SETMENU \>> 2 \->LIST

  @ Create the appropriate GROB for ENGL
  "ENGL" ROT SYSEVAL

  @ Append the code to be run when ENGL is pressed
  \<< 60 SF SETMENU \>> 2 \->LIST

  @ Build the menu definition list and activate it
  2 \->LIST TMENU
\>>

The above requires that the program is named "SETMENU", but that could be changed by updating the program references in the menu item assignments in the code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP48G soft menu toggle: How? - DM48 - 07-23-2023, 02:11 AM
RE: HP48G soft menu toggle: How? - DM48 - 07-23-2023, 12:13 PM
RE: HP48G soft menu toggle: How? - DM48 - 07-23-2023, 05:56 PM
RE: HP48G soft menu toggle: How? - BruceH - 07-23-2023, 08:42 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-01-2023, 05:55 PM
RE: HP48G soft menu toggle: How? - johnb - 07-23-2023, 10:09 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-01-2023, 06:24 PM
RE: HP48G soft menu toggle: How? - DM48 - 07-24-2023, 02:11 AM
RE: HP48G soft menu toggle: How? - DM48 - 07-25-2023, 01:31 AM
RE: HP48G soft menu toggle: How? - DM48 - 07-25-2023, 04:57 PM
RE: HP48G soft menu toggle: How? - DavidM - 07-27-2023 03:41 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-01-2023, 09:39 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-02-2023, 09:00 PM
RE: HP48G soft menu toggle: How? - johnb - 10-02-2023, 09:55 PM
RE: HP48G soft menu toggle: How? - johnb - 10-02-2023, 10:02 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-02-2023, 10:23 PM
RE: HP48G soft menu toggle: How? - johnb - 10-02-2023, 11:09 PM
RE: HP48G soft menu toggle: How? - DM48 - 10-03-2023, 12:42 AM



User(s) browsing this thread: 5 Guest(s)