DesktopControl.Handle

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 = aDesktopControl.Handle

New in 2021r3

Supported for all project types and targets.

Returns a handle to the control.

Notes

For interfacing with Mac APIs using Declares, DesktopControl.Handle returns NSViews (except for DesktopToolbar).

On Windows returns the HWND of the control.

On Linux it returns a GtkWidget.

Sample Code

The following gets a handle to the control.

Var p As Ptr = Me.Handle