Este es el botón Install: esto esta en On Clic
Paragraph.SetVisible("Paragraph1", false);
local tbChecks ={}
local tblNodes = {"1.1","1.2","2.1","2.2","3.1","3.2"}
n=1
--Debug.Clear()
if tbChecks then
for i,Node in pairs (tblNodes) do
tNode =Tree.GetNode("Tree1",Node);
if tNode.Checked == true then
tbChecks[n]={Ind=Node,Data=tNode.Data}
n=n+1
end
end
--#############################################################################
--Debug.ShowWindow(true);
--for count=1,Table.Count(tbChecks) do
--Debug.Print(tbChecks[count]["Ind"].."\r\n"..tbChecks[count]["Data"].."\r\n");
--end
--###############################################################################
for count=1,Table.Count(tbChecks) do
Path = tbChecks[count]["Data"]
File.Copy(Path, _DesktopFolder, false, true, false, false,FileCopyCallback);
error = Application.GetLastError();
if (error ~= 0) then
Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
tbChecks=nil;
break;
end
end
end
tblProp = {};
-- Get the child count of 'Tree1'
ChildCount = Tree.GetChildCount("Tree1", "1");
-- Get the child count of 'Tree2'
ChildCount2 = Tree.GetChildCount("Tree1", "2");
-- Get the child count of 'Tree3'
ChildCount3 = Tree.GetChildCount("Tree1", "3");
-- Check if main index checked
if (e_NodeIndex == "1") and (e_Checked == true) then
for count = 1, ChildCount, 1 do
tblProp.Checked = true;
Tree.SetNode("Tree1", "1."..count, tblProp);
end
-- Check if main index not checked
elseif (e_NodeIndex == "1") and (e_Checked == false) then
for count = 1, ChildCount, 1 do
tblProp.Checked = false;
Tree.SetNode("Tree1", "1."..count, tblProp);
end
end
-- Check if second index checked
if (e_NodeIndex == "2") and (e_Checked == true) then
for count = 1, ChildCount2, 1 do
tblProp.Checked = true;
Tree.SetNode("Tree1", "2."..count, tblProp);
end
-- Check if second index not checked
elseif (e_NodeIndex == "2") and (e_Checked == false) then
for count = 1, ChildCount2, 1 do
tblProp.Checked = false;
Tree.SetNode("Tree1", "2."..count, tblProp);
end
end
