المشاركة الأصلية بواسطة المـهاجر
مشاهدة المشاركة
أليس كذلك ؟
my_table = {};
for i = 1,15 do
lc = listbox.getcount("listbox"..i);
table.insert(my_table,i,lc.."."..i );
end
for j,k in pairs(my_table) do
tamer = math.max(tamer, k);
end
value1,value2, value3 = string.match (tostring (""..tamer), "^([%+%-]?)(%d*)%.?(.*)$")
scrollbar.setrange("plugin1", 1, listbox.getcount("listbox"..value3), 0);
x=true
--- ListBox on select
selkk = ListBox.GetSelected(this);
select=selkk[1]
Page.StartTimer(10);
--- on show
select=1
value=0
-- on timer
for i =1,5 do
ListBox.SelectItem("ListBox"..i, select);
p = ListBox.GetSelectedCount("ListBox"..i);
value=value+p
end
if value==5 then
value=0
Page.StopTimer(10);
end
--- ListBox on select
selkk = ListBox.GetSelected(this);
select=selkk[1]
Page.StartTimer(10);
--- on show
select=1
value=0
-- on timer
for i =1,5 do
ListBox.SelectItem("ListBox"..i, select);
p = ListBox.GetSelectedCount("ListBox"..i);
value=value+p
end
if value==5 then
value=0
Page.StopTimer(10);
end
تعليق