3
« on: June 19, 2013, 08:47:05 AM »
So, i used Guiscrollctrl as a parent for guitextlist and i get rows on my list but the rows are limited to 24, is this because of the size of my gui?
};
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "40 83";
extent = "271 271";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
willFirstRespond = "0";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
rowHeight = "40";
columnWidth = "30";
new GuiTextListCtrl(Crpg_jobselectList) {
profile = "GuiTextListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "259 2";
minExtent = "8 2";
enabled = "1";
visible = "1";
clipToParent = "1";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "1";
};
};
%list = Crpg_JobselectList
%string = "a b c d e f g h i j k l m o p q r s t u v w x y z abc asd gre asd weq trg daw"; // y would be the 24th row
%c = getWordCount(%string) + 1;
for(%i=0;%i < %c;%i++)
{
%letter = getWord(%string,%i);
%list.addRow(%i,%letter);
}
in the end i would only get up to y because it's the 24th row, z would not show. and it seems that is the limit for me, and ideas on how to change it