PDA

View Full Version : Two Newbie Questions


PurpleParrot
02-01-2006, 06:22 AM
Dear Friends,
I am sorry for for what probably is very simple, but here goes:

I want the user on button click to choose a location from a file dialog and then copy a certain file to the location he has chosen. the file.copy action just copies the file without asking where to put it.

2) Is it possible to have an audio object like the video object with a slider and controls etc?

TIA

Raffi

Gabis
02-01-2006, 11:32 AM
For question number 1:

-- have the user select the install folder
InstallFolder = Dialog.FolderBrowse("Please select the installation folder", "C:\\");
-- Copy the file to the InstallFolder
File.Copy("PathToYourFile", InstallFolder, true, true, false, true, nil);


as for number 2, try doing a forum search. there are plenty of topics about media player objects that include sliders, and more.

yosik
02-02-2006, 12:32 AM
Raffi,
The easiest way would be to use the (free) mediaplyer plugin which comes, naturally with slider and stuff.

Yossi