Syntax
Success = WidgetSetSkin(Widget, Skin)
Description
Assigns a specific skin object (created with CreateSkin() or loaded with LoadSkin()) to the widget. This forces the widget to use this specific skin for its styling, overriding the default skin.
Parameters
Widget
The handle of the ProGUI widget.
Skin
The handle of the skin object to assign. Set to #Null or 0 to make the widget use the default skin again.
Return Value
Returns #True if the skin was successfully assigned, or #False if the widget handle was invalid.
Remarks
By default, widgets use the skin set via SkinSetDefault(). This function allows applying a different, specific skin instance to individual widgets, useful for creating variations in appearance or testing different themes without changing the global default. Setting the skin invalidates the widget's skin cache and triggers a redraw.
See Also
WidgetGetSkin, CreateSkin, LoadSkin, SkinSetDefault
Supported OS
Windows, Linux