^
I've tried,but didn't helped(btw checkboxes are OnChange event)
EDIT:
I've puted script in disable section (means that while closing form, on close function jumps into disable section, but ignoring checkboxes) _________________
local fLocale = {}
local cnt=0
for x = 0, 6 do
a=1 + tonumber(x)
fLocale['checkbox'..a]=createCheckBox(f)
fLocale['checkbox'..a].name='checkbox'..a
--fLocale['checkbox'..a].caption=fLocale['checkbox'..a].name
cnt=a
end
btn1.OnClick=function()
for x = 1, tonumber(cnt) do
res=fLocale['checkbox'..x]
if res.Checked == false then
res.Checked = true
else
res.Checked = false
end
end
end
btn2.OnClick=function()
for x = 1, tonumber(cnt) do
res=fLocale['checkbox'..x]
res.Checked = false
end
end
local chck=1
btn3.OnClick=function()
local function test()
for x = 1, tonumber(cnt) do
res=fLocale['checkbox'..x]
if chck==2 then
res.Checked = true
btn3.caption="FullCheckFalse"
else
res.Checked = false
btn3.caption="FullChecktrue"
end
end
end
if chck==1 then
chck=2 test()
else
chck=1 test()
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum