Post Reply 
How to make a complete application?
03-10-2017, 07:09 PM
Post: #2
RE: How to make a complete application?
(03-10-2017 12:03 AM)math7 Wrote:  I would like to know how to make a complete application for the HP Prime, I have seen the source code of some applications such as the "Equation Library" of Han, and I have seen that there is a folder with the name "Equation Library.hpappdir" Is the folder that is passed to the calculator or the emulator to the application tree, but within this folder there are other files with different extensions such as * .hpapp, * .hpappprgm, * .hpappvar and * .lib. My question is how do you make those files with those extensions and when doing a program on the Prime to what extent is it saved?

Creating a complete app is really no different from creating a large program file with a few exceptions:

1. Certain special function names can be used to replace behaviors of the Symb, Plot, and Num keys (and their shifted versions). By using the function name Plot(), Symb(), Num(), PlotSetup(), SymbSetup(), and NumSetup(), whatever code you write for these functions will be run when you press those corresponding keys (or shifted keys). The START() function will be run every time you select the App in the app menu, and press Start in the menu at the bottom of the screen.

2. Apps may make use of app variables and app files via the AVars() and AFiles() command. App variables can only be created on the calculator. App files may be created on the calculator, or imported through the connectivity kit (just drag and drop the file into appdir folder).

3. Apps may have an icon associated with it (just drop an icon.png file into the appdir folder).

Start off by copying an app (press [Apps] and highlight the app you want to mimic). Save it under a new name. Then in the program editor, open the program file named <blah> (App) where <blah> is the name you specified earlier. Here, enter your code. I recommend starting this process on the emulator.

Once you have started coding, open the conn. kit alongside the emulator and drag your custom app into the Content section of the conn. kit (to save it onto your PC/Mac). This where the appdir folder is created.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to make a complete application? - Han - 03-10-2017 07:09 PM



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