Indigo Rose Software

Go Back   Indigo Rose Software Forums > AutoPlay Media Studio 7.5 > AutoPlay Media Studio 7.5 FAQ

Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2007
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
How do I make a ComboBox object hold a list of files and open the selected file?

Question
How do I make a ComboBox object hold a list of file and open the selected file?

Answer
The best way to make a comboBox object hold a list of files and open the selected one at runtime is:

1) In the ComboBox settings give each entry an appropriate display name under the section Item Text
2) In the ComboBox settings give each entry a link to a file located in the docs folder. An example would be AutoPlay\\Docs\\MyPDF.pdf
3) In the Script -> On Select tab you could then use this generic script:
Code:
-- Get the selected index
selected = ComboBox.GetSelected("ComboBox1");
-- Get the data (file path) of that entry
data = ComboBox.GetItemData("ComboBox1", selected);
-- Open the file
File.Open(data, "", SW_SHOWNORMAL);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open one zip file with pass, with various pdf files, from list box lepinski AutoPlay Media Studio 6.0 6 06-06-2007 05:02 PM
Mac autostart function??? Protocol AutoPlay Media Studio 4.0 21 06-26-2003 11:25 AM
FAQ: AutoPlay Menu Studio 3.0 Frequently Asked Questions Support AutoPlay Menu Studio 3.0 0 10-10-2002 02:15 PM
HOWTO: Open an HTML Help File to a Specific Topic Support AutoPlay Media Studio 4.0 Examples 0 10-01-2002 03:24 PM


All times are GMT -6. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software