EventY ( )
Parameters
| None. |
Description
|
Returns the y value of the current event - usually a pointer or window position. Requires Extended language mode. The vertical partner of EventX. By event id it holds: $201-$203, $205 mouse events: the pointer's y position, relative to the gadget that posted the event, in logical 96-DPI units $801 window move: the window's new y position $802 window size: the window's new height $2003 display change: the new physical display height Other events leave it at 0. Together with EventX it gives you where things happened - feeding a right-click position to ShowPopupMenu, or reacting to a $802 window-size event when you lay children out by hand (though SetGadgetLayout usually does that for you). Event positions are logical 96-DPI units, the same space gadget geometry lives in. For drawing on a canvas, whose buffer is physical pixels, poll CanvasMouseY instead. See it working in the selection and context menus sample. See also: EventX, EventData, EventID, CanvasMouseY, ShowPopupMenu. |
Index