Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Join Date
    Dec 2007
    Posts
    59

    help with this code about tree menu ??

    I have a tree menu which gets information from xml.

    in xml :
    PHP Code:
    <dr>
    <
    rsmler>
    <
    grup>
    <
    tree>1.1</tree>    
        <
    rsm>
        <
    yol>1-2-1.jpg</yol>
        <
    isim>My picture</isim>
        </
    rsm>
    </
    grup>

    <
    grup>
    <
    tree>1.1</tree>    
        <
    rsm>
        <
    yol>1-2-1.jpg</yol>
        <
    isim>My picture</isim>
        </
    rsm>
    </
    grup>

    ...
    etc
    </rsmler>
    </
    dr


    when I click node 1.1 in tree menu ,I want to get grup1 information or when clicked 1.x get the information of grup which has 1.x in <tree>1.x</tree>

    I couldnt solve

    my not working codes are :



    PHP Code:
    sSelected Tree.GetSelectedNode"Tree1"); 
    nSelected String.ToNumber(sSelected); 
    maxgrup XML.Count("dr/rsmler""grup");

    for 
    1,maxgrup do
    pathw "dr/rsmler/grup:"..a
    subtree 
    XML.GetValue(pathw.. "/tree");
    subt String.ToNumber(subtree);
        for 
    nSelected subt,subt do
                
    maxresim XML.Count(""..pathw"rsm");
                for 
    1,maxresim do
                
    rsm pathw.."/rsm:"..b
                rsmyol 
    XML.GetValue(rsm.."/yol");
                
                
    Image.Load("sut"..b"AutoPlay\\MM_Rsm\\"..rsmyol);
                
    end
        end
    end 
    pls help ...
    Last edited by santral; 01-16-2008 at 01:11 PM.

Similar Threads

  1. Article: Adding a Menu Bar System
    By Brett in forum AutoPlay Media Studio 7.5 Examples
    Replies: 5
    Last Post: 12-04-2006, 07:31 PM
  2. Tree menu error
    By tino in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 06-16-2006, 07:33 PM
  3. More Menu Bar Examples
    By Roboblue in forum AutoPlay Media Studio 7.5 Examples
    Replies: 5
    Last Post: 02-28-2006, 08:58 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. TUTORIAL: Showing and Hiding Objects in AutoPlay Menu Studio 3.0
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 02:39 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