Post Reply 
personalized menu
09-03-2015, 12:33 PM
Post: #6
RE: personalized menu
Yeah, it's pretty much a tree. The main custom menu, i.e. the one you get when you press the CST key, is stored in 'CST.DEF' (you can use any name you like, really). Then store the name 'CST.DEF' into 'CST'.

From inside that menu, you can have small programs assigned to the keys that invoke other menus with TMENU. Here's my home dir custom menu setup from my 48SX. The 48 manual explains the structure of custom menu assignments if it isn't clear what's going on here.

CST.DEF:
Code:
%%HP: T(3)A(D)F(.);
{ { "BASE"
\<< 'CST.BASE' TMENU
\>> } { "CHARS"
\<< 'CST.CHARS' TMENU
\>> } { "DIRS"
\<< DIRS
\>> } % %CH "\GS" {
"CLFIN"
\<< { FV I%YR PMT PV
N PYR } PURGE
TVMEND
\>> } }

CST.BASE: (PEEKBASE and ALLBASE are external programs.)
Code:
%%HP: T(3)A(D)F(.);
{ { "HEX" { HEX
\<< { HEX } PEEKBASE
\>> } } { "DEC" { DEC
\<< { DEC } PEEKBASE
\>> } } { "OCT" { OCT
\<< { OCT } PEEKBASE
\>> } } { "BIN" { BIN
\<< { BIN } PEEKBASE
\>> } } { "ALL"
ALLBASE } R\<-\->B AND
OR XOR NOT { } R\<-\->B
}

CST.CHARS:
Code:
%%HP: T(3)A(D)F(.);
{ "" "!" "#" "$"
"%" "&" "'" "(" ")"
"*" "+" "," "-" "."
"/" ":" ";" "<" "="
">" "?" "@" "[" "\\"
"]" "^" "_" "`" "{"
"|" "}" "~" "" "\<)"
"\x-" "\.V" "\v/" "\.S" "\GS"
"\|>" "\pi" "\.d" "\<=" "\>="
"\=/" "\Ga" "\->" "\<-" "\|v"
"\|^" "\Gg" "\Gd" "\Ge" "\Gn"
"\Gh" "\Gl" "\Gr" "\Gs" "\Gt"
"\Gw" "\GD" "\PI" "\GW" "\oo"
"\161" "\162" "\163" "\164" "\165"
"\166" "\167" "\168" "\169" "\170"
"\<<" "\172" "\173" "\174" "\175"
"\^o" "\177" "\178" "\179" "\180"
"\Gm" { "PARA" "\182" }
"\183" "\184" "\185" "\186" "\>>"
{ "1/4" "\188" } {
"1/2" "\189" } { "3/4"
"\190" } "\191" "\198" "\.x"
"\O/" "\222" "\Gb" "\230" "\:-"
"\254" }
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
personalized menu - tigger - 09-03-2015, 08:40 AM
RE: personalized menu - Raymond Del Tondo - 09-03-2015, 08:52 AM
RE: personalized menu - tigger - 09-03-2015, 09:09 AM
RE: personalized menu - Dave Britten - 09-03-2015, 11:14 AM
RE: personalized menu - tigger - 09-03-2015, 11:27 AM
RE: personalized menu - Dave Britten - 09-03-2015 12:33 PM
RE: personalized menu - tigger - 09-03-2015, 03:00 PM
RE: personalized menu - Dave Britten - 09-03-2015, 03:40 PM



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