EndPrgm
"14" is the code for Exact/Approx. "1", "2" and "3" are the codes for Auto, Exact and Approximate,
respectively. This program works, but you can't really identify tell from the displayed menu which item
is which. A solution to this problem is to use extra Item commands, just as labels. With this solution, the
program now looks like
custom
1
()
Prgm
custom
title "Modes"
item "Set Auto:"
item "setmode(""
1
4"",""
1
"")"
item "Set Exact:"
item "setmode(""
1
4"",""2"")"
item "Set Approx:"
item "setmode(""
1
4"",""3"")"
endcustm
custmon
EndPrgm
This program will create a menu for function key F1 that looks like this:
1
:Set Auto:
2:setmode("
1
4","
1
")
3:Set Exact:
4:setmode("
1
4","2")
5:Set Approx:
6:setmode("
1
4","3")
There are a few problems with this method. First, it makes the menu twice as long as it really needs to
be. Second, it is an awkward user interface, because the user's natural inclination is to press [1] for
Auto mode, while it is really key [2] that needs to be pressed.
These objections can be overcome by using both codes and strings in the Item arguments. Use the
"14" code to shorten strings, but use the strings themselves for Auto, Exact and Approximate:
custom
1
()
Prgm
custom
title "Modes"
item "setmode(""
1
4"",""Auto"")"
item "setmode(""
1
4"",""Exact"")"
item "setmode(""
1
4"",""Approximate"")"
endcustm
custmon
EndPrgm
This program makes a menu that looks like this:
7 - 27
Содержание TI-92+
Страница 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Страница 53: ...LCD connector detail PCB switch side 1 42...
Страница 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Страница 55: ...Key cap detail 1 44...
Страница 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Страница 59: ...Keypad rubber sheet key cap side Inside front cover showing keycaps in place Detail of a key cap 1 48...
Страница 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...