Quote:
Originally Posted by Gunderak
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;
x = 5;
y = 5;
width = 190;
height = 190;
new GuiMLTextCtrl("Test_Text") {
profile = GuiBlueMLTextProfile;
x = 0;
y = 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.