Syntax
Skin = SkinGetDefault()
Description
Retrieves the handle of the skin currently set as the application's default skin.
Parameters
This command takes no parameters.
Return Value
Returns the handle of the default skin object. If no default skin has been explicitly set, it may return
the handle of an internally created default skin or #Null.
Remarks
The default skin is used by widgets that haven't had a specific skin assigned via WidgetSetSkin(). It's also the target for skin commands where the optional `Skin` parameter is omitted. Use SkinSetDefault() to change the default skin.
Example
IncludeFile "ProGUI_PB.pbi"
StartProGUI()
; Get the initial default skin (likely an internal one)
DefaultSkin1 = SkinGetDefault()
Debug "Initial Default Skin Handle: " + Str(DefaultSkin1)
; Create/Load another skin
MySkin = CreateSkin("MyTheme")
If MySkin
; Set the new skin as default
SkinSetDefault(MySkin)
DefaultSkin2 = SkinGetDefault()
Debug "New Default Skin Handle: " + Str(DefaultSkin2) ; Should be same as MySkin
Else
Debug "Could not create MyTheme skin."
EndIf
; ... rest of application ...
StopProGUI()
See Also
SkinSetDefault, CreateSkin, LoadSkin
Supported OS
Windows, Linux