DockItem.Graphics
From Xojo Documentation
Read-Only Property (As Graphics )
This property is only available on the macOS platform. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform. |
Provides access to all the Graphics class methods for drawing into the dock icon.
Sample Code
This code draws an image (that is part of the project) as the DockItem:
App.DockItem.Graphics.DrawPicture(MyDockIcon, 0, 0, 128, 128)
App.DockItem.UpdateNow
App.DockItem.UpdateNow