DockItem.ResetIcon
From Xojo Documentation
Method
This method 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 method on an incompatible platform. |
Resets the icon to its original state, its default appearance, and then draws a new icon.
Sample Code
App.DockItem.ResetIcon
App.DockItem.Graphics.DrawPicture(NewDockIcon, 0, 0, 128, 128)
App.DockItem.UpdateNow
App.DockItem.Graphics.DrawPicture(NewDockIcon, 0, 0, 128, 128)
App.DockItem.UpdateNow