The following example reports on the control in the DesktopContainer that has the focus. If no control has the focus, this property is Nil. Gets or sets the DesktopUIControl in the window that has the focus. The Dockitem property of the DesktopApplication class enables you to control the DockItem for the whole application. Anything you can do with a Graphics object you are able to do with the Dock's Graphics object (like drawing in a picture or using a Shape 2D). You can also use the Graphics.ClearRectangle method to start over form a blank icon. Call the UpdateNow method to redraw the icon. Since a macOS icon is intended to be scaled automatically, you should design it as a 512 x512 pixel icon and include smaller sizes. (The Graphics property may be Nil it is non- Nil only when a macOS window has been minimized to the dock.) The ResetIcon method resets the icon to its original state (default appearance). Use the methods of the Graphics class to modify the appearance of the icon. The DockItem class has two methods, UpdateNow and ResetIcon, and one property, Graphics.
The Locations enumeration contains all potential values for this property.Įnables you to access the DockItem class to manipulate the dock item associated with the window (macOS only). If it's a Document window, this property represents the window's location at which the window will initially be placed when it opens.