Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GUI Issues (https://forums.graalonline.com/forums/showthread.php?t=67960)

killerogue 08-09-2006 03:24 AM

GUI Issues
 
I am trying to get text to appear different text when I press each of the buttons individually. I want the text to appear in the body of the window and not the button titles. Help Please? O_O

PHP Code:

//#CLIENTSIDE
function onCreated(){
  
addGUIControls();
}
function 
addGUIControls(){
  new 
GuiWindowCtrl("SH_Information"){
    
profile "GuiWindowProfile";
    
extent "432 300";
    
position "100 100";
    
canmaximize 1;
    
canminizmize 0;
    
canclose 1;
  new 
GuiButtonCtrl("News"){
  
profile "GuiButtonProfile";
  
position "6 24";
  
text "News";
  }
  new 
GuiButtonCtrl("Hirings"){
  
profile "GuiButtonProfile";
  
position "146 24";
  
text "Hirings";
  }
  new 
GuiButtonCtrl("FAQ"){
  
profile "GuiButtonProfile";
  
position "286 24";
  
text "FAQ";
  }
 }
  
GraalControl.addControl(Blah);



Skyld 08-09-2006 08:04 PM

Use a GuiTextCtrl.
PHP Code:

new GuiTextCtrl(foo)
{
  
position = {xy};
  
extent = {wh};

  
text "Text value here";




All times are GMT +2. The time now is 01:31 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.