Making Custom Menus |
|||||||||||||||||||||||
What
are custom menus good for?
|
|||||||||||||||||||||||
Anyone using the TI89 or TI92(+) calculators frequently, quickly encounters the need to repeat a command or set of characters again and again. Take for example, units: when we use units in expressions, we often enter the same combination of units. How convenient is it to type "_psi*_ft^6/_lbmole^2" or "_m^3*_atm/(_kgmole*_°K)" over and over again? It's not. Wouldn't it be more convenient if we could have a menu for "units" containing the entire combination of units we frequently use? Here's another example: ever used solve( or any other command and added a "|" (with) operator with a line such as " | a=1 and r=10.4 and t=9.01 and e=4" ...? I got tired of typing space-a-n-d-space after the second time I think. On the TI89 this would certainly be tiresome because of the inavoidable necessity to integrate the "alpha" keys into the keyboard. Why not have the sequence " and " (with spaces and all) as a menu label -- say, in menu F1 as the item "1: and " -- so that when we need this sequence we would just type F1, 1 and the entire sequence would be added instantly? So are you ready to build your own custom menu? Just follow the following simple steps! |
|||||||||||||||||||||||
Step no. 1: Pre-organizing your custom menu | |||||||||||||||||||||||
Divide the labels you want to create into categories. For example, if you would like to create a special set of unit combinations as described above, you can group that set under the title "Units". If you often need " and " or " or " sequences, or maybe commands like "factor(ans(1))" , " expand(ans(1))" , or perhaps "solve(ans(1)=0,x)", you could group them under the title "Math". Decide now on the names of categories you would like to have, and the items you would like to have in them. Here is a simple typical arrangement: Title: "Math"
Title: "Units"
Title: "Const."
Title: "Greek"
Title: "Conv."
|
|||||||||||||||||||||||
Step no. 2: Understanding the commands | |||||||||||||||||||||||
Now that we know what we want to have in our custom menu, let's understand how we could let our calculator know about it. We did not work in vain in the previous step, you see, because as it happens to be, the calculator's programming structure of a custom menu is exactly as written above! To be more specific, the title request is simply the word Title followed by the name of the title, and thereafter the list of items, surprisingly preceding each item with the command Item (No doubt the TI-BASIC programmers' imagination is quite a wild one). To be even more specific, here is how we would program the above custom menu in the TI's programming language (this is the custom menu will will practice on. You can replace the titles and items with the ones you thought of, and write them instead):
|
|||||||||||||||||||||||
Step no. 3: Programming our custom menu | |||||||||||||||||||||||
Open the APPS menu... | |||||||||||||||||||||||
... scroll down to Program Editor and choose 3: New. | |||||||||||||||||||||||
Make sure the Type is Program, and give the program a useful name such as "setcustm" | |||||||||||||||||||||||
Confirm and the new program will be opened for editing. | |||||||||||||||||||||||
This is where we are going to write the program that will make us a custom menu. Move the cursor to the first line of this program (the empty line between Prgm and EndPrgm) where we will declare that we are making a custom menu by entring the commands Custom and EndCustm. There is no need to manually type them in -- they are listed in the F2- Control menu. |
|||||||||||||||||||||||
Now we will create our first title. Again there's no need to type it in, it's in the F3- I/O - Dialog menu. Open the menu and choose Title. | |||||||||||||||||||||||
Proceed by typing the first title "Math". The order in which you enter the titles will be the same as that in which the titles will be arranged in the custom menu. | |||||||||||||||||||||||
Press ENTER after that line, and I recommend adding a few spaces before the Item command. In any case, in the F3- I/O- Dialog menu you will find Item. Enter it on the next line. | |||||||||||||||||||||||
Enter the first item's name: " and ". Remember: what you write is exactly what will be pasted on the entry line, spaces and all! | |||||||||||||||||||||||
Press ENTER after that line and do the same for the next item: " or ". | |||||||||||||||||||||||
Do the same for all the items under this title. | |||||||||||||||||||||||
Now you can add the next titles and the items in them, until you complete the list. | |||||||||||||||||||||||
Finally, add a command that will change the normal menu with our custom menu. This command is called CustmOn. Scroll past the EndCustm command, make a new line between it and EndPrgm, and paste the command CustmOn from the CATALOG. | |||||||||||||||||||||||
Well -- that took a while to complete. But don't worry -- it will definetly pay off in future use of your calculator! Now that we have completed the program that creates our custom menu, it is time to make it work. Press the HOME buttom to return to the Home Screen. |
|||||||||||||||||||||||
Step no. 4: Activating our custom menu | |||||||||||||||||||||||
From the Home Screen we will activate the program we made. Open the Catalog by pressing the CATALOG key. Our program is not here. It is a user-defined program (not buit-in), so we need to look for it in the user-defined Catalog. Access the User-Defined Catalog by pressing F4. Find the program setcustm( from the main folder and press ENTER to paste it one the Entry Line. | |||||||||||||||||||||||
Close the parentheses... | |||||||||||||||||||||||
... and press ENTER to run the program. | |||||||||||||||||||||||
Congratulations! You have created your own special menu! | |||||||||||||||||||||||
Important things to know about custom menus | |||||||||||||||||||||||
|
|||||||||||||||||||||||
Making more than one custom menu | |||||||||||||||||||||||
Want to have a different custom menu for physics, chemistry, and mathematics? No problem! Make a program for each menu; give each program a significant name, for example: physmenu, chemmenu, methmenu. And add an identical last title in each one of them containing the names of the programs that activate each menu. Here's an example: Suppose the menu we've just created was intended to be the physics menu. There are another two menus, called chemmenu and mathmenu and they are added as the last title in physmenu: |
|||||||||||||||||||||||
Now, all you need to do is run the menu you want at the particular moment, and since this lest title is available from all the other menus, they are virtually interlinked -- you can run any one of the menus from any other menu at your convenience. If you want to be even more sofisticated, you can make each custom menu a shortcut program, that can be run with the numeber keys. This way, for our example, we would simply press Diamond+1 and the Physics menu will be activated. Press Diamond+2 -- and the Chemistry menu will turn on, and so on. Make the first shortcut program (kbdprgm1) a program that shows a menu of the available menus. For example:
|
|||||||||||||||||||||||
Now all you have to do is hit Diamond+key number for the menu you want, and if you don't remember which number goes with which menu, just hit Diamond+1 to remind you of the correct number. This is probably alot more convenient than the previous method, but don't hesitate to experiment with each method until you decide. Have fun! | |||||||||||||||||||||||
______________________________________________________________________________________
Created by Andrew Cacovean, Sep. 13, 2000