Myra icon indicating copy to clipboard operation
Myra copied to clipboard

Feature request: Panel mouse events

Open TheRuneSnake opened this issue 5 years ago • 2 comments

On panel / windows we have events like a KeyDown and MouseMoved events. I would like to request a MouseDown and MouseUp event that is triggerd when the user presses one of the mouse buttons somewhere within the window. The event should return which button is clicked and the relative position of the mouse, similar to the KeyDown event.

TheRuneSnake avatar Feb 11 '21 19:02 TheRuneSnake

Every widget has such events already. Use Desktop.Position for absolute mouse position. And Desktop.Position - Bounds.Position for relative mouse position.

rds1983 avatar Feb 12 '21 01:02 rds1983

Okay, I will look into that

TheRuneSnake avatar Feb 18 '21 22:02 TheRuneSnake