App development on the Prime
|
09-29-2024, 12:30 PM
(This post was last modified: 09-29-2024 12:44 PM by CheshireChris.)
Post: #1
|
|||
|
|||
App development on the Prime
I've started to write my first Prime app (rather than standalone program) today and, following the example in the User Guide, have successfully created the "skeleton" of a new app with an icon, and added a custom view to it. I've also worked out how to add the functions that get called when you press keys like SYMB, PLOT, and so on. I've stored my global data in app variables using AVars, and that's worked fine, too.
One question, though: At the moment I have a function called "Start" which initialises all my data. Is it possible to have this, or another, function run automatically when the app starts? I see that the build-in apps seem to do this, whereas on my app, when I start the app, nothing changes on the screen until I press the VIEW key to choose a view. EDIT: It turns out that I was almost there! Rather than having a "Start" custom view, all I had to do was to define a non-exported function called "START" in my code and that runs automatically on app startup. So simple when you know how . All explained on page 620 of the Prime User's Guide. Chris |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
App development on the Prime - CheshireChris - 09-29-2024 12:30 PM
RE: App development on the Prime - CheshireChris - 09-29-2024, 01:11 PM
RE: App development on the Prime - toml_12953 - 09-29-2024, 10:57 PM
RE: App development on the Prime - CheshireChris - 09-29-2024, 04:42 PM
RE: App development on the Prime - Jase - 09-29-2024, 05:29 PM
RE: App development on the Prim - CheshireChris - 09-29-2024, 05:36 PM
RE: App development on the Prime - glfiedler - 09-29-2024, 11:52 PM
RE: App development on the Prime - CheshireChris - 09-30-2024, 06:13 AM
RE: App development on the Prime - CheshireChris - 09-30-2024, 07:45 PM
RE: App development on the Prime - Tyann - 10-01-2024, 06:40 PM
RE: App development on the Prime - Jase - 10-01-2024, 10:54 PM
RE: App development on the Prime - komame - 10-02-2024, 04:46 AM
RE: App development on the Prime - CheshireChris - 10-02-2024, 01:57 PM
RE: App development on the Prime - CheshireChris - 10-01-2024, 06:42 PM
|
User(s) browsing this thread: 1 Guest(s)