spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * GUI control functions and properties

OwningGUI property (GUI controls)

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


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.