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

SetSize (GUI controls)

(Formerly known as SetGUIObjectSize, which is now obsolete)

GUIControl.SetSize(int width, int height)
Adjusts the specified GUI control to have the new size WIDTH x HEIGHT.

This allows you to dynamically resize GUI controls on the screen while the game is running, and this may well be useful in conjunction with GUI.SetSize and GUIControl.SetPosition if you want to create dynamically resizable GUIs.

Applies To

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

Example:

invMain.SetSize(160, 100);
will resize the invMain control to have a size of 160 x 100.

See Also: GUIControl.Height, GUIControl.SetPosition, GUI.SetSize, GUIControl.Width,


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