I have been researching the Gui commands on the wiki, and this is all I could find for the scroll box:
PHP Code:
GuiScrollCtrl (GuiControl):
childmargin - string
constantthumbheight - boolean
hscrollbar - string
scrollpos - string
tile - boolean
vscrollbar - string
wheelscrolllines - integer
willfirstrespond - boolean
scrolldelta(int, int)
scrollto(int, int)
Based on that, and some othe gui commands, I was able to put this together:
The window contains the scollbox, and the scrollbox contains the text
PHP Code:
//#CLIENTSIDE
// by Prozac
// replaces the welcome server pm, so that everyone -with v4- will see it without
// having to click on the pm in the playerlist.
//with scroll window
function onCreated()
{
new GuiWindowCtrl("San_welcome")
{
//profile = "GuiMLWindowProfile";
position = "0 0";
width = 440;
height= 400;
extent = "440 400";
canMove = true;
canResize = canMaximize = canClose = true;
tile = true;
text = "Sanstrata Classic Welcome Message";
visible = true;
new GuiScrollCtrl(Scrollbox)
{
position = "5 24";
extent = "430 380";
childmargin ="5";
constantthumbheight = true;
hscrollbar = "red";
scrollpos = "gray";
tile = true;
vscrollbar = "hi there";
wheelscrolllines = 400;
willfirstrespond = false;
scrolldelta(100, 500);
scrollto(300, 500);
new GuiMLTextCtrl("Welcome_msg2")
{
position = "0 0";
extent = "431 473";
horizSizing = "width";
vertSizing = "height";
text = "<body bgcolor=black><sbreak><shadow:1:1><shadowcolor:000000><br> I want the whole background to be black but this box will not expand downwards except for how much text you put into it<br><br><br><br><br><br><br><br>and I dont want to resort to br tags";
}
}
}
}
But the problem is that the text extent height cannot be forced to a pixel width, it just wraps around for however much text is there, and the amount of text may vary depending on what the welcome message is. I did not find any docuemtation on how to make the window or scroll areas a different color. I can only change the color of the text area, and the text area is not going to be a constant size.
If someone knows how to please help fix this so that the whole background of the scroll/window area is always black, that would be great. (oh look! I asked nicely!

)