Difference between revisions of "Window.Handle"

From Xojo Documentation

m
 
Line 10: Line 10:
 
{{Description
 
{{Description
 
|text = Returns a handle to the window. Use this instead of the deprecated MacWindowPtr and WinHWND. }}
 
|text = Returns a handle to the window. Use this instead of the deprecated MacWindowPtr and WinHWND. }}
 
  
 
== Notes ==
 
== Notes ==
 
For interfacing with Cocoa APIs using [[Declare]]s, Window.Handle always gives a NSWindow or NSPanel.
 
For interfacing with Cocoa APIs using [[Declare]]s, Window.Handle always gives a NSWindow or NSPanel.

Latest revision as of 18:12, 14 August 2017

Read-Only Property (As Integer )
IntegerValue = aWindow.Handle

Supported for all project types and targets.

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

Notes

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