readonly int GUIControl.ID
Gets the GUI control's ID number. This is the control's object number from the GUI editor,
and is useful if you need to interoperate with legacy code that uses the control's number
rather than object name.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
SetGUIObjectEnabled(lstSaves.OwningGUI.ID, lstSaves.ID, 1);
lstSaves.Enabled = false;
uses the obsolete SetGUIObjectEnabled function to enable the lstSaves list box,
and then uses the equivalent modern property to disable it.
See Also: GUIControl.OwningGUI, GUI.ID
|