HP48G soft menu toggle: How?
|
07-23-2023, 10:09 PM
(This post was last modified: 07-23-2023 10:12 PM by johnb.)
Post: #6
|
|||
|
|||
RE: HP48G soft menu toggle: How?
There's also a block character in "chars" (right-shift PRG).
I've built self-referential functions that move the character from menu item to menu item as an indicator. For example, in the menu below, it moves it between Hex, Dec, Oct, and Bin. Ignore all the other menu items here (it's a general purpose / 16c set of menus). I'm showing the exact code so you can see how it might be used in practice. This is function SETB: Code: « The first bit (between the external set of braces {}) is the menu. The first row of button assignments are just signed/unsigned conversions, a function that shows 'x' in all 4 major bases, set/recall word size, and "switch to format menu. Ignore this part. The CSMNU stuff adds on additional rows to the menu shown, and can also be safely ignored. The interesting part are the Hex/Dec/Oct/Bin buttons (which fall on the next page of the softbutton menu), and their assigned function calls. The bottom few steps of the program get the 3-character name, append the block character, assign it as the button label while assigning the default labels to the rest, and install it all as a menu. Every time you press one of the hotkeys assigned to Hex/Dec/Oct/Bin, SETB edits the menu and replaces it in place. Hope this helps! Daily drivers: 15c, 32sII, 35s, 41cx, 48g, WP 34s/31s. Favorite: 16c. Latest: 15ce, 48s, 50g. Gateway drug: 28s found in yard sale ~2009. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)