Thread: Hey, scripters!
View Single Post
  #21  
Old 08-04-2006, 06:38 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to 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.
__________________
Skyld
Reply With Quote