PDA

View Full Version : ListBox Help



RaZenKane
09-27-2002, 01:43 PM
I am using a trial version of your AMS 4.0 and was wondering if there is a demo anywhere of how to make it to when you click on something in the list box, that it opens the ffile for install, new to this stuff thanx in advance /ubbthreads/images/icons/smile.gif

Lorne
09-27-2002, 02:35 PM
Have a look at the "Adding items to a list box (with data)" topic in the help file under Actions / Examples / Advanced. (Make sure you update the help file to the latest version, dated September 24).

That should give you the basics of how list the whole item::data thing works.

Basically you put whatever you want in as the list item, and put the full path to the file in the data part. (You can use the "List Box Object - Add File" action to do that easily.) Then on the list box object's On Selection Changed event, you get the selected item's index, use that to get the data for the item at that index, and then just do a File - Execute action on that path.