Luiz Gustavo Castelan P�voas wrote

> How can I implement a Select Folder popup dialog??
> with or withoud MUI.

You can use MUI, FileXtra, FileIO, BuddyAPI and probably many other Xtras.

Using MUI  ( cannot set default directory or filter)

on getFilePath
  muiObj = xtra("Mui").new()
  res = muiObj.fileOpen("")
  muiObj = 0
  if stringP(res) then return res
  else return ""
end


Using FileIO (Can filter, but no default directory)

on getFilePath
  fObj = xtra("fileIO").new()
  res = fObj.displayOpen()
  fObj = 0
  if stringP(res) then return res
  else return ""
end

Using File Xtra  (Can Filter and set default directory)

on getFilePath defaultPath
  if voidP(defaultPath) then defaultPath = the moviePath
  if the platform contains "Macintosh" then
    res = FileOpenDialog(defaultPath, "")
  else
    res = FileOpenDialog(defaultPath, "", "Open File", 0, 1)
  end if
  if stringP(res) then return res
  else return ""
end

Buddy API is the most customisable -- but the Mac version of the function
isn't available yet (except as a separate Beta Xtra). File Xtra is probably
the easiest to use since you dont need to worry about creating and disposing
of instances of the Xtra. Also, its free (part of the "Save as Java" package
included with Director)

Luke



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to