View Single Post
  #6  
Old 08-03-2011, 05:16 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gunderak View Post
wow a new gui i didnt even know about lol.. i havnt been able to test around with your example and tweak it yet seeming im not at home. id there any way to make a scroll bar which wiuld allow you to view previous text?
You need to put the GuiMLTextCtrl inside a GuiScrollCtrl.

PHP Code:
new GuiWindowCtrl("Test_Window") {
  
profile GuiBlueWindowProfile;
  
  
width 200;
  
height 200;
  
  
clientRelative true;
  
  new 
GuiScrollCtrl("Test_Scroll") {
    
profile GuiBlueScrollProfile;

    
5;
    
5;

    
width 190;
    
height 190;

    new 
GuiMLTextCtrl("Test_Text") {
      
profile GuiBlueMLTextProfile;
      
      
0;
      
0;
      
      
text "This is a multi-line text control."
    
}
  }

Quote:
im also trying to learn javascript which iv noticed is extremly simmilar.
would this benefit my scripting ability on graal in any way shape or form?
thanks again.
Learning any other language will improve your scripting ability in Graal, but JavaScript is especially beneficial as it's highly useful and its syntax is nearly identical to GScript's.
__________________
Reply With Quote