Thread: Hey, scripters!
View Single Post
  #22  
Old 08-04-2006, 07:37 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by Skyld
About making your window container and restricting windows to your screen:
PHP Code:
new GuiControl(ComputerWindowContainer)
{
  
position = {position of screen Xposition of screen Y};
  
extent = {width of screenheight of screen};

... creates a container which you can keep objects in.

Now, if you created a window:
PHP Code:
new GuiWindowCtrl(MyWindow)
{
  
position = {00};
  
extent = {300200};

  
text "EVIL";

... and then used:
PHP Code:
ComputerWindowContainer.addControl(MyWindow); 
... then the window becomes bound to the container control. That means you can move it, resize it, maximize and minimize it only inside of the container control.
Thanks, that was the biggest thing in my way =D
Reply With Quote