Syntax
Name$ = WidgetGetName(Widget)
Description
Retrieves the name assigned to the specified widget. The name is primarily for developer identification and doesn't directly affect rendering or layout unless used in custom logic.
Parameters
Widget
The handle of the ProGUI widget whose name is to be retrieved.
Return Value
Returns the widget name as a string. Returns an empty string ("") if the widget handle is invalid or if no name has been set.
Remarks
Widget names can be useful for debugging or identifying specific widgets within event handlers or other parts of the code. Use WidgetSetName() to assign a name. This is distinct from the widget's Class (WidgetGetClass()), which is used for skinning.
See Also
WidgetSetName, WidgetGetClass, WidgetSetClass
Supported OS
Windows, Linux