Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.5 ('Keyboard Shortcuts')
Instant purchase and download via GumRoad!

FEATURE

Gestures and Tabs

Handling MacOS Gestures and Sierra's Tabs

Issue: 14.5 (September/October 2016)
Author: Sam Rowlands
Author Bio: Sam is a pixelMancer and codeWeaver at Ohanaware.
Article Description: No description available.
Article Length (in bytes): 23,135
Starting Page Number: 47
Article Number: 14506
Resource File(s):

Download Icon project14506.zip Updated: 2016-09-01 11:29:42

Related Web Link(s):

http://www.ohanaware.com/xojo/

Excerpt of article text...

Ready to dig back into extending your Xojo-made application? For this article, we're going to go over implementing macOS Gestures and Sierra's tabbed windows. I'm also going to introduce an exciting piece of technology that I call "projectCyborg."

To get started, download the demo project from the xDev website and copy the "projectCyborg" module into a brand new Desktop project.

Add a canvas filling the left hand side of Window1, then a listbox to fill the right hand side of the window like Figure 1.

Now add the following as a shared method to Window1. Note that this must be a shared method as it will not work otherwise.

Private Shared Sub handleRotateGesture(receivingNSID as Ptr, inSelector as Ptr, NSEventID as Ptr)

...End of Excerpt. Please purchase the magazine to read the full article.