beautypg.com

HP 39g Graphing Calculator User Manual

Page 224

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

Auto-run programs

If the Prompt item is “Start”, then the ProgramName program

runs whenever you start the aplet. This is useful for setting up
a program to configure the aplet. Users can select the Start
item from the Views menu to reset the aplet if they change

configurations.

You can also define a menu item called “Reset” which is
autorun if the user chooses the RESET button in the APLET

view.

ProgramName

ProgramName is the name of the program that runs when the

corresponding menu entry is selected. All programs that are
identified in the aplet’s SETVIEWS command are transferred
when the aplet is transmitted.

ViewNumber

ViewNumber i s the number of a view to start after the program
finishes running. For example, if you want the menu option to

display the Plot view when the associated program finishes,
you would specify 1 as the ViewNumber value.

Including standard menu options

To include one of an aplet’s standard View menu options in
your customized menu, set up the arguments trio as follows:

• The first argument specifies the menu item name:

-

Leave the argument empty to use the standard Views
menu name for the item, or

-

Enter a menu item name to replace the standard

name.

« The second argument specifies the program to run:

-

Leave the argument empty to run the standard menu

option.

-

Insert a program name to run the program before the

standard menu option is selected.

” The third argument specifies the view and the menu

number for the item. Determine the menu number from
the View numbers table below.

Note: SETVIEWS with no arguments resets the views to

default of the base aplet.

15-16

Programming