readonly GUI* GUIControl.OwningGUI
Gets the GUI control's owning GUI, which is the GUI that contains the control.
Returns a GUI, which allows you to use all the usual
GUI functions and properties.
Applies To
Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.
Example:
GUI *thegui = lstSaves.OwningGUI;
thegui.Visible = false;
lstSaves.OwningGUI.Visible = true;
turns off the GUI that contains the lstSaves list box, then turns it on again using
the niftier full pathing approach.
See Also: GUIControl.ID, GUI.ID
|