Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    2

    Grin Create a listbox

    Hi...

    I think there was someone that ask this question but still not answer what i wnat to do. The idea is to create a listbox with choices, when we click it open a aplication. the way i´m making it opens all them. Could someone help how i make the script to avoid that?


    Thanks

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    post what code you have so we can see where you are going wrong

    EDIT: (in case this is what you need)

    here is a small code snippet that will get the selected item in the listbox and launch the file (assuming that the path is stored in the data field of the listbox)
    Code:
    sel = ListBox.GetSelected("ListBox1");
    if sel then
    	selData = ListBox.GetItemData("ListBox1", sel[1]);
    	result = File.Run(selData, "", "", SW_SHOWNORMAL, false);
    end
    Last edited by RizlaUK; 06-24-2007 at 04:39 PM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jun 2007
    Posts
    2

    Thumbs up Create a listbox

    Thank you for your help, sorry i didn´t put any script. I was trying with the examples that came in the program but i was putting in the wrong order.


    Thanks anyway

  4. #4
    Join Date
    Nov 2004
    Posts
    6
    How do you specify the path in the list box? is it necessary to use a Variable for the source folder, if so what is the variable?

    Thanks

    nevermind, figured it out
    Last edited by -= K =-; 07-25-2007 at 12:35 PM.

Similar Threads

  1. Example: Using the ListBox object
    By Ted Sullivan in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-07-2004, 12:24 PM
  2. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  3. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  4. HOWTO: Create an Empty Folder
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-21-2002, 03:21 PM
  5. HOWTO: Create Nested Shortcuts in the Start Menu
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-24-2002, 10:26 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