From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Ptr )
PtrValue = aDesktopWindow.Handle

New in 2021r3

Supported for all project types and targets.

Returns a handle to the window. Use this instead of the deprecated MacWindowPtr and WinHWND.


When interfacing with Cocoa APIs using Declares Window.Handle always gives a NSWindow or NSPanel.