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

X property (GUI controls)

int GUIControl.X;
Gets/sets the X position of the GUI control. This specifies its left edge, and is relative to the GUI which contains the control.

This allows you to dynamically move GUI controls around on their parent GUI while the game is running.

Applies To

Inherited by the Button, InvWindow, Label, ListBox, Slider and TextBox.

Example:

btnConfirm.X = 10;
will move the btnConfirm button to be positioned 10 pixels from the left of its GUI.

See Also: GUIControl.SetPosition, GUIControl.Y


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