PHP Code:
temp.ainfo = System.serverFunction(this.name, "getAbilities", player.account);
temp.i = 1;
with (Mal_Main) {
new GuiScrollCtrl(Mal_Ability_Scroll) {
position = {32, 44};
extent = {143, 225};
image = null;
//red = green = blue = alpha = 0;
hScrollBar = vScrollBar = "alwaysOff";
new GuiTextListCtrl(Mal_Abilities_Scroll) {
x = y = 0;
width = 200;
fitparentwidth = true;
clearrows();
for (a : temp.ainfo) {
echo(a);
addrow(temp.i, a[0]);
temp.i++;
}
setSelectedRow(1);
}
}
}
This is pretty weird. So far, when I have two problems. When I put the text list ctrl inside the scroll control, the text lister isn't shown. But when I put it outside of the scroll ctrl and take away the scroll altogether I can't make make the text list as long as I need to.