TTMSFNCMenuServiceEventRec Record
Record that captures a macOS native event and its decoded state for use by the menu service event hook.
API unit family: TMSFNCPopupMenu
Syntax
TTMSFNCMenuServiceEventRec = record
Fields and properties
| Name | Type | Description |
|---|---|---|
Button |
TMouseButton |
Mouse button involved in a mouse event. |
Event |
NSEvent |
The underlying NSEvent received from the macOS event queue. |
EventKind |
TTMSFNCMenuServiceEventKind |
Categorised kind of the event (key, mouse down, mouse up, mouse move, or other). |
Form |
TCommonCustomForm |
The FireMonkey form that corresponds to the event window. |
FormMousePos |
TPointF |
Mouse position in the coordinate space of Form. |
HandledInApp |
Boolean |
When True, the event was already handled by the application and the menu service should not act on it. |
MouseInContent |
Boolean |
When True, the mouse cursor is inside the menu content area. |
ScreenMousePos |
TPointF |
Mouse position in screen coordinates. |
Shift |
TShiftState |
Modifier keys active at the time of the event (Shift, Alt, Ctrl, Meta). |
View |
NSView |
The NSView that received the event. |
Window |
NSWindow |
The NSWindow associated with the event. |