Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    22

    Grin Tree HelpMe please

    Hello, I am Serkan
    Subject: help tree1

    Auto Media PlayStudio



    İf Tree1.selected=A then
    Message("B");
    end

    İf Tree1.selected=B then
    Message("B");
    end

    Please Help me

    Thanks You

  2. #2
    Join Date
    Nov 2006
    Posts
    233
    add this to the tree's on select event

    Code:
     --Returns the selected node index as a string vale 
    sSelected = Tree.GetSelectedNode( "Tree1"); 
    --convert the result ot a number string 
    nSelected = String.ToNumber(sSelected); --returned values for A and B are ------ 1.1 = A and 1.2 = B  
    -- test for A 
    if nSelected == 1.1 then Dialog.Message( "Notice", "A", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);  
    --was not A test for B 
    elseif nSelected == 1.2 then Dialog.Message( "Notice", "B", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);  
    --was not B show fault message 
    else Dialog.Message( "Notice", "fault", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); 
    end
    output enhanced with AMS Code Pretty
    Last edited by Desrat; 04-25-2007 at 09:25 AM.

  3. #3
    Join Date
    Apr 2007
    Posts
    22

    Talking

    Quote Originally Posted by Desrat View Post
    add this to the tree's on select event

    Code:
     --Returns the selected node index as a string vale 
    sSelected = Tree.GetSelectedNode( "Tree1"); 
    --convert the result ot a number string 
    nSelected = String.ToNumber(sSelected); --returned values for A and B are ------ 1.1 = A and 1.2 = B  
    -- test for A 
    if nSelected == 1.1 then Dialog.Message( "Notice", "A", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);  
    --was not A test for B 
    elseif nSelected == 1.2 then Dialog.Message( "Notice", "B", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);  
    --was not B show fault message 
    else Dialog.Message( "Notice", "fault", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); 
    end
    output enhanced with AMS Code Pretty
    Ok, Thanks

  4. #4
    Join Date
    May 2007
    Posts
    18

    Peekaboo!

    hellllo...

    I'm a new member and i want to ask about same thing but in different way..

    if i want to use the tree with button ..i mean i want to select some thing in the tree and then press the button and the program will open a file when i do this step????

    can you help me pleaseeeeeeeee

    zoya

Similar Threads

  1. How do I clear a tree?
    By Teraka in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 03-19-2007, 12:58 PM
  2. Alphabetize Table or Tree Object???
    By Animl in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 07-24-2006, 12:33 PM
  3. How to Make a File Browser with Tree Object?
    By Darwin PC in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 01-16-2006, 12:13 AM
  4. Tree object menu error issue.
    By 4thstar in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 11-25-2005, 09:13 AM
  5. Image List For Tree Object
    By JimS in forum AutoPlay Media Studio 6.0
    Replies: 12
    Last Post: 08-08-2005, 01:45 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