HP 39gs_40gs_Mastering The Graphing Calculator_English_E_F2224-90010

T
T
h
h
e
e
S
S
E
E
T
T
V
V
I
I
E
E
W
W
S
S
c
c
o
o
m
m
m
m
a
a
n
n
d
d
The
VIEWS menu is created by the SETVIEWS command. It follows a repetitive pattern of listing a menu
option, followed by the name of the program that should run if the user chooses that option, followed by a
code number which tells the calculator which view to drop the user into once the program finishes. Part of the
job of the ‘helper’ program is usually to set up this view so that it shows what the programmer wants it to.
You should therefore also think about what you want the user to be looking at once the program they have
triggered stops running. Do you want them to be looking at the
PLOT view - perhaps the option they chose
was to draw a graph, with the program being there to set appropriate axes; or the
NUM view - perhaps we
are analyzing data - or should they be looking at the
VIEWS menu again so they can make another choice?
The syntax for
SETVIEWS is as follows…
SETVIEWS “Menu line1”; “Program name”; View_No;
“Menu line2”; “Program name”; View_No; (repeated as many times as needed…)
“Menu line3”; “Program name”; View_No: (Note the colon on the final entry)
where View_No is:
0. Home view 11. List Catalog
1. Plot view 12. Matrix Catalog
2. Symbolic view 13. Notepad Catalog
3. Numeric view 14. Program Catalog
4. Plot Setup 15. Views menu item 1 (Plot-Detail if the parent is the Function aplet)
5. Symbolic Setup 16. Views menu item 2 (Plot-Table if the parent is the Function aplet)
6. Numeric Setup 17. Views menu item 3 (Overlay Plot if parent is the Function aplet)
7. Views menu 18. Views menu item 4 (Auto Scale if parent is the Function aplet)
8. Aplet Note view 19. Views menu item 5 (Decimal if the parent is the Function aplet)
9. Aplet Sketch view 20. Views menu item 6 (Integer if the parent is the Function aplet)
10. Aplet Catalog etc.
The syntax for
SETVIEWS allows any number of triples. Views 15 onwards vary according to which parent
aplet is chosen. The list above assumes the parent is the Function aplet and will be different for other parents.
The convention for the
SETVIEWS command is to place it in a program with a name of .NAME.SV where
NAME is whatever name you chose at design stage. When you run this program it severs the aplet’s link to
the normal
VIEWS menu inherited from its parent and replaces it with the new options. If an aplet is created
using the special software then it will probably not have this
.NAME.SV program. The software creates the
VIEWS menu in a different way that doesn’t require it. This does not affect the aplet in any other way.
The linking performed by the
SETVIEWS command (or by the ADK) is also important in that it tells the
calculator which programs are to be transmitted with the aplet when it is copied via cable or via infra-red link.
Only programs named in the
SETVIEWS
command (or linked by the software) will be
transmitted with the aplet by cable or by infra-red.
259