Thread: Gui Scripting
View Single Post
  #9  
Old 08-22-2006, 12:12 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
PHP Code:
//#CLIENTSIDE
function onCreated(){
  
TwinnyTest.destroy; //No need to reconnect after each update now
  
drawgui();
}

function 
drawgui(){
  
Testing = new GuiWindowCtrl(TwinnyTest); //Sets the name of the window
  
with (TwinnyTest) {
    
useownprofile = true;
    
profile      = "GuiBlueWindowProfile";
    
extent       = "450 300";
    
position     = "100 100";
    
canmaximize  = true;
    
canminizmize = false;
    
canclose     = true;
    
visible      = true;
  
    new 
GuiButtonCtrl("News") {
      
profile = "GuiBlueButtonProfile";
      
extent = "100 30";
      
position = "5 150";
      
text     = "Actual Text";
    }

    new 
GuiScrollCtrl("ScrollName") { //Must enter a name for a control
      
profile = "GuiBlueScrollProfile"; //use GuiScrollCtrl not GUIScrollCtrl
      
extent  = "100 100";
      
position = "10 30";
    }
  }
  
GraalControl.addControl(TwinnyTest); //Must be the name of the window
} 
Use that for a reference for your main GUI stuff

http://wiki.graal.net/index.php/Crea...d_Window_Panes
A link to a guide about Tabbed Panes from Graal Wiki

Last edited by Twinny; 08-22-2006 at 01:05 PM..
Reply With Quote