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:
The scrolling stops working.
Would there be a way to not have to rewrite the scroll myself, or not losing its original behaviour?
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;
Would there be a way to not have to rewrite the scroll myself, or not losing its original behaviour?