I'm trying to learn some programming concepts for the HP Prime and I wonder how you can create touch buttons within a program to perform a specific action.
On the other hand, I also wonder if there is any alternative to the command CHOOSE to create a menu on the screen.
With my limited knowledge I suspect that with the command GETPIX I can get the information of a pixel region but which is the command to get the touch on the screen?
HP Prime touch button
|
10-10-2013, 06:34 AM
10-10-2013, 09:02 AM
The command you're looking for is called MOUSE
10-10-2013, 12:16 PM
Thank you Han, but how to use this command? I don't see in the user guide enough information about this topic.
10-10-2013, 12:24 PM
Quote: Page 549-553 gives you a list of other I/O commands including mouse. Syntax: MOUSE[(index)]
Returns two lists describing the current location of each For touch/taps, the second of the two lists is empty. For pinch-like motions, both lists are non-empty (each list corresponding to a touchpoint on the screen). Try the following program snippet:
EXPORT EGMOUSE() Press [On] to abort; otherwise touch/drag the screen. |
« Next Oldest | Next Newest »
|