TrayItem.Handle

From Xojo Documentation

Read-Only Property (As Ptr )


PtrValue = aTrayItem.Handle

New in 2009r4

Supported for all project types and targets.

Returns the window handle that the TrayItem belongs to on Windows and the GtkStatusIcon widget on Linux. On Windows, the first TrayItem has a ID of 1000 and subsequent adds will increment this ID.