HP Forums
Events in Apps PPL - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Events in Apps PPL (/thread-22667.html)



Events in Apps PPL - marcin1812 - 11-09-2024 01:14 PM

Hi,
I would like to add some functionality to "Plot" App.
Prime allows me to expand apps. Yes! Smile

So I want to add some new cursor functionality (for example zoom only in Y range by pressing "*", or select actual point - by pressing "enter" and add its coordinates to a list).
So I need to intercept key strokes in App Plot.

Question:
Is there some events to utilise (like for example "OnKeyDown"), or some Listeners (like in AndroidStudio)?

Another question:
- Moving cursor in Plot (left, right key) has very nice feature: long click, and cursor moves itself until key is released.
- I want to make something similar in PPL: In "Main Loop" i use ReadKey.
But ReadKey waiting for button click. If button is still pressed, Readkey stops flow.
Is there any workaround for this?

Regards


RE: Events in Apps PPL - Raymond Del Tondo - 11-09-2024 01:40 PM

(11-09-2024 01:14 PM)marcin1812 Wrote:  [..] But ReadKey waiting for button click. If button is still pressed, Readkey stops flow.
Is there any workaround for this?
ISKEYDOWN(key)


RE: Events in Apps PPL - marcin1812 - 11-09-2024 01:50 PM

Quote:ISKEYDOWN(key)
Thanks Smile