 [28] COMP.SYS.HP48 (2:2426/2030.3)  COMP.SYS.HP48 
 Msg  : #4273 [461] - 3236                                                      
 Von  : Joseph K. Horn                      2:2426/2030.200 Do 03 Mr 94 02:40  
 An   : All                                                                     
 Subj : Submenus in 'CST'                                                       

.REPLYADDR akcs.joehorn@hpcvbbs.external.hp.com
.REPLYTO 2:2426/2030.200 uucp
From: akcs.joehorn@hpcvbbs.external.hp.com (Joseph K. Horn)

mmt@math.ufl.edu [Matthew Michael Tadd] writes:

> Is there a way to make submenu's in 'CST' look like real submenus?
> I would rate myself as a poor HP48 User-RPL programmer at best, so
> bear with me.  Presently, I've been creating functions that create
> temporary menus using TMENU in 'CST'.
>
> Excerpt from 'CST'
>   { { "FLOW" << { '1_kg/h' '1_lb/min' { "CST" << CST TMENU >> } }
>   TMENU >> } }
>
> This creates a "submenu" in 'CST' called "FLOW".  I left a
> contingency so you can also go back to the main 'CST' menu from the
> submenu as well.
>
> Please tell me there is both a better way to do this, as well as a
> way to make my "submenu" 'FLOW' look like a real submenu, i.e. with
> a bar over the labels.

Yes, you can have a bar over the label, even if you want to do
everything in User RPL.  Follow these steps.

1.  Type this:  "FLOW" #3A3ECh SYSEVAL.  You'll get a 34-byte Graphic
    (21 x 8) on the stack, which is the desired "tabbed" label.

2.  Leaving the label graphic on the stack, edit your menu list (shown
    above).  Delete the "FLOW", and with the cursor at the place where
    "FLOW" used to be, press EDIT ^STK ECHO ENTER ENTER.  The "FLOW"
    has now been replaced with the desired tabbed label graphic.

3.  Drop the graphic from the stack; it's no longer needed.

Using CST TMENU always returns to the first page of the CST menu.  You
can have the HP48 return to the menu page that has "FLOW" on it, if
you wish, by using 1.nn TMENU, where nn equals the desired page
number.  For example, if FLOW is on the second page of your CST menu,
use 1.02 TMENU.

For fun, try using #3A38Ah, or #3A44Eh, instead of #3A3ECh, in step 1
above.  You'll get a mode-style label with a bullet in it, or a
solver-style label in inverse video, respectively.

Hope this helps.

-Joseph K. Horn-

+++
--- UUGate/2 v0.26(OS/2)
 * Origin:  From: cyberbox.north.de (2:2426/2030.200)

