Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Posts
    172

    Grin CANCEL button help

    when i click cancel from dialog message, it doesnt stop next dialog !!!

    Code:
    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

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Code:
    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
    Last edited by Imagine Programming; 04-05-2009 at 10:05 AM.
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Mar 2007
    Posts
    172
    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;
    Code:
    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
    Attached Images

  4. #4
    Join Date
    Sep 2008
    Posts
    14
    Code:
    result = Tree.GetNode("Tree1", v);

  5. #5
    Join Date
    Mar 2007
    Posts
    172
    thanks alot Kick

    but this gives me the child name
    Code:
    result = Tree.GetNode("Tree1", v);
    this gives node name but i get error
    Code:
    result = Tree.GetNode("Tree1", i);
    i want to have expanded nodes name
    Last edited by ButtonMaker; 04-05-2009 at 11:46 PM.

Similar Threads

  1. Problem with file.find and cancel button
    By Solmos in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 11-05-2007, 07:59 AM
  2. Add cancel button to dialog box
    By boroarke in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 07-15-2007, 07:48 PM
  3. StatusDlg & cancel button.
    By jassing in forum Setup Factory 7.0
    Replies: 2
    Last Post: 11-15-2006, 12:29 PM
  4. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  5. Dialog.GetInformation box, concerning CANCEL button
    By SilverFalcon in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 01-30-2003, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts