Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: list box fun

  1. #1
    Pharmakon Guest

    list box fun

    Hi All,

    I'm currently evaluating APMS 5.0 for use in creating distance education CD ROMs. I'm trying to create a listbox that opens a file/url using the list data field, but I haven't been able to figure this out. What action do I need to perform this function? i've tried using ListBox.getItemData, but it doesn't seem to work. I also tried using File.GetURL, but I haven't found a way to put the list box data in as the URL. Any help?! Thanks!


    Phar

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Hello,

    Place the following code into the "On Double-Click" or "On Select" event of your listbox:

    Code:
    -- Get the selected index
    Index = ListBox.GetSelected("ListBox1");
    -- Use that index to get the data
    Data = ListBox.GetItemData("ListBox1", Index[1]);
    -- Use the data in any way that you would like. I choose
    -- a listbox object
    Dialog.Message("Your ListBox Data is",Data);
    Adam Kapilik

  3. #3
    Pharmakon Guest
    thanks!

    I was starting to think it wasn't going to work. Then i realized i was using data and not Data as the URL. Guess i'm used to flash scripting!

    phar

Similar Threads

  1. List Box Object Frustration
    By Firenegn in forum AutoPlay Media Studio 4.0
    Replies: 11
    Last Post: 10-04-2004, 05:53 PM
  2. List box suggestions/help Can you advise ?
    By jimmy guilfoyle in forum AutoPlay Media Studio 4.0
    Replies: 3
    Last Post: 05-22-2004, 12:07 PM
  3. dynamic list box, part 2
    By intel352 in forum Setup Factory 6.0
    Replies: 10
    Last Post: 01-27-2003, 10:33 PM
  4. HOWTO: Set up an MP3 Playlist
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 11:57 AM
  5. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM

Posting Permissions

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