Post Reply 
Events in Apps PPL
11-09-2024, 01:14 PM
Post: #1
Events in Apps PPL
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
Find all posts by this user
Quote this message in a reply
11-09-2024, 01:40 PM
Post: #2
RE: Events in Apps PPL
(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)

-- Ray
Find all posts by this user
Quote this message in a reply
11-09-2024, 01:50 PM
Post: #3
RE: Events in Apps PPL
Quote:ISKEYDOWN(key)
Thanks Smile
Find all posts by this user
Quote this message in a reply
Post Reply 




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