Platforms to show: All Mac Windows Linux Cross-Platform
CanvasGesturesMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Controls | MBS MacControls Plugin | 18.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Please use one global instance of this class to catch the events for all canvases you track.
Updated class for v23.2 to work with DesktopCanvas control.
- 11 events
- event beginGestureWithEvent(can as Variant, e as NSEventMBS) as boolean
- event endGestureWithEvent(can as Variant, e as NSEventMBS) as boolean
- event magnifyWithEvent(can as Variant, e as NSEventMBS) as boolean
- event rotateWithEvent(can as Variant, e as NSEventMBS) as boolean
- event scrollWheel(can as Variant, e as NSEventMBS) as boolean
- event smartMagnifyWithEvent(can as Variant, e as NSEventMBS) as boolean
- event swipeWithEvent(can as Variant, e as NSEventMBS) as boolean
- event touchesBeganWithEvent(can as Variant, e as NSEventMBS) as boolean
- event touchesCancelledWithEvent(can as Variant, e as NSEventMBS) as boolean
- event touchesEndedWithEvent(can as Variant, e as NSEventMBS) as boolean
- event touchesMovedWithEvent(can as Variant, e as NSEventMBS) as boolean
- property CanvasCount as Integer
- 6 methods
- method AddCanvas(c as Canvas)
- method AddCanvas(c as DesktopCanvas)
- method Constructor
- method Destructor
- method RemoveCanvas(c as Canvas)
- method RemoveCanvas(c as DesktopCanvas)
This class has no sub classes.
Some examples using this class:
Blog Entries
- MBS Xojo Plugins, version 24.2pr2
- News from the MBS Xojo Plugins Version 24.1
- MonkeyBread Software Releases the MBS Xojo Plugins in version 24.1
- MBS Xojo Plugins, version 24.1pr3
- News from the MBS Xojo Plugins Version 23.2
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.2
- MBS Xojo Plugins, version 23.2pr1
- MBS Xojo Plugins, version 22.5pr7
- MBS Xojo Plugins, version 19.2pr7
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.2
Xojo Developer Magazine
- 21.4, page 10: News
- 17.5, page 40: What's New in the MBS Plugins, With the Plugins growing every year, here are new capabilities you may have missed by Stefanie Juchmes
- 16.4, page 11: News
Videos
- Presentation from Munich conference about MBS Plugins.
- Presentation from Xojo Developer Conference 2019 in Miami.
Release notes
- Version 24.2
- Added respondsToSelector to CanvasGesturesMBS class, so the system can query which events you implemented.
- Version 24.1
- Added touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent and touchesMovedWithEvent events to CanvasGesturesMBS class.
- Version 23.2
- Updated CanvasGesturesMBS to work with desktop controls.
- Version 22.5
- Disabled debug logging left over in CanvasGesturesMBS class.
- Version 19.2
- Added scrollWheel and smartMagnifyWithEvent events to CanvasGesturesMBS class.
- Changed CanvasGesturesMBS to call beginGestureWithEvent, even if NSResponder doesn't call it on MacOS 10.11 or newer.
- Version 18.2
- Added CanvasGesturesMBS class.
The items on this page are in the following plugins: MBS MacControls Plugin.