HP Forums
Mouse Event - 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: Mouse Event (/thread-8449.html)



Mouse Event - Freire - 06-03-2017 03:54 PM

How can I intercept mouse events without losing it's original ability?

Example:
I create a drawmenu and intercepts mouse event in order to make drawmenu react to clicks.
I do this in the terminal screen, the terminal screen can be scrolled with mouse events.
You drag the screen down or up and get the scroll as answer.
But if I intercept the mouse like this:
Code:

 IF MOUSE(1)>220 THEN
 //code//
 END;
The scrolling stops working.
Would there be a way to not have to rewrite the scroll myself, or not losing its original behaviour?


RE: Mouse Event - cyrille de brébisson - 06-05-2017 05:22 AM

Hello,

Unfortunately no.
The reason for this is that is that mouse events will not be processed until all programs and other actions are finished as they are themselves actions...

Cyrille