لقطة اخرى
نفس السيناريو ........8 ليبالات label من 1 الى 8 .........لكل منها لون مختلف
قي onshow
في التايمر on timer
في الزر
نفس السيناريو ........8 ليبالات label من 1 الى 8 .........لكل منها لون مختلف
قي onshow
كود PHP:
for i=1,8 do
Label.SetText("Label"..i,Math.Random(1,70));
end
كود PHP:
if e_ID == 1 then
pos={} ; for i= 1,8 do pos[i] = Label.GetPos("Label"..i); end
for i= 1,8 do p=i+1 ; if p >= 9 then p=1 end
Label.SetPos("Label"..i ,pos[p].X, pos[p].Y)
end
end
if e_ID == 2 then
Page.StopTimer(1);
end
في الزر
كود PHP:
Page.StartTimer(300, 1);
Page.StartTimer(3000,2);
تعليق