DockItem.Graphics

From Xojo Documentation

Read-Only Property (As Graphics )


GraphicsValue = aDockItem.Graphics

Supported for all project types and targets.

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