View Full Version : CANCEL button help
ButtonMaker
04-05-2009, 09:16 AM
when i click cancel from dialog message, it doesnt stop next dialog !!!
FindNode = Dialog.Input("Find Node", "Node Name:", "", MB_ICONQUESTION);
tbFound = Tree.FindAllNodesByText("Tree1", "0", FindNode, false);
for i,v in tbFound do
Tree.ExpandNode("Tree1", i);
Tree.SetSelectedNode("Tree1", v);
Go = Dialog.Message(i, v, MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON2);
if Go == "CANCEL" then
Application.ExitScript();
else
end
end
Imagine Programming
04-05-2009, 11:01 AM
FindNode = Dialog.Input("Find Node", "Node Name:", "", MB_ICONQUESTION);
tbFound = Tree.FindAllNodesByText("Tree1", "0", FindNode, false);
if(tbFound)then
for i,v in tbFound do
Tree.ExpandNode("Tree1", v);
Tree.SetSelectedNode("Tree1", v);
Go = Dialog.Message(tostring(i), v, MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON2);
if Go == IDCANCEL then
break;
end
end
end
ButtonMaker
04-05-2009, 04:03 PM
thanks alot Imagine Programming
i have another question, i am trying to write node name to dialog but not child... it works ok but when i come to last child i get that error
code i use;
FindNode = Dialog.Input("Find Node", "Node Name:", "", MB_ICONQUESTION);
tbFound = Tree.FindAllNodesByText("Tree1", "0", FindNode, false);
if(tbFound)then
for i,v in tbFound do
Tree.ExpandNode("Tree1", v);
Tree.SetSelectedNode("Tree1", v);
result = Tree.GetNode("Tree1", i);
Go = Dialog.Message(tostring(i), result.Text, MB_OKCANCEL, MB_ICONINFORMATION, MB_DEFBUTTON2);
if Go == IDCANCEL then
break;
end
end
end
result = Tree.GetNode("Tree1", v);
ButtonMaker
04-06-2009, 12:36 AM
thanks alot Kick
but this gives me the child name
result = Tree.GetNode("Tree1", v);
this gives node name but i get error
result = Tree.GetNode("Tree1", i);
i want to have expanded nodes name
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.