Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
NSEventFilter.EnableEvents
Enable some events which had been disabled before.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| NSEventFilter | 2.9 | Yes | No | No | No | No |
MBS( "NSEventFilter.EnableEvents"; eventMask ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| eventMask | Which events to enable. | 0 |
Result
Returns OK on success.
Description
Enable some events which had been disabled before.Event filtering requires macOS 10.6 or newer.
Possible values for the events:
| NSLeftMouseDownMask | 2 |
| NSLeftMouseUpMask | 4 |
| NSRightMouseDownMask | 8 |
| NSRightMouseUpMask | 16 |
| NSMouseMovedMask | 32 |
| NSLeftMouseDraggedMask | 64 |
| NSRightMouseDraggedMask | 128 |
| NSKeyDownMask | 1024 |
| NSKeyUpMask | 2048 |
| NSFlagsChangedMask | 4096 |
| NSScrollWheelMask | 4194304 |
| NSTabletPointMask | 8388608 |
| NSTabletProximityMask | 16777216 |
| NSOtherMouseDownMask | 33554432 |
| NSOtherMouseUpMask | 67108864 |
| NSOtherMouseDraggedMask | 134217728 |
Examples
Enable scroll wheel events:
MBS( "NSEventFilter.DisableEvents"; 4194304 )
Enable all right mouse events:
MBS( "NSEventFilter.DisableEvents"; 8+16+128 )
See also
Blog Entries
Created 18th August 2014, last changed 10th August 2020
NSEventFilter.EnableAllEvents - NetworkInterfaces.Count
Feedback: Report problem or ask question.
Links
MBS Xojo blog