On Mar 23, 2007, at 11:57 AM, Sven E Olsson wrote: > Is it OS X ??
Yes. > dim PNGtype as New FileType > PNGtype.Name = "PNGf" > PNGtype.MacType = "PNGf" > PNGtype.Extensions = "png" > > You must have a MacType .. and If I remember correct there was some > issue with the name .. that code works for me in a drop window. BUT > THE FILE MUST HAVE A MacType!! It do not matter what the file > extension is. Then that is a bad thing since tar and gzip don't apply a creator code or filetype when they are creating files... I guess the question is - is this a bug since the Extensions property implies that I can select files by their extension(s). Thanks, Tim -- Tim Jones [EMAIL PROTECTED] > On 2007-03-23, at 19:46, Tim Jones wrote: > >> On Mar 23, 2007, at 11:05 AM, Tim Jones wrote: >> >>> HI Folks, >>> >>> I'm trying to use the OpenDialog to allow a user to only select >>> files >>> that end in ".tar.gz" or ".tgz". I've created a Filetype entry >>> called GzipTarFile that has the extensions field containing: >>> >>> .tgz, .tar.gz >> >> I've dumped the FileType class and generated the Filetype in code as >> demonstrated in the LR: >> >> Dim dlg As OpenDialog >> Dim f As FolderItem >> Dim gzipTarFile As New FileType >> gzipTarFile.Names = "gzip compressed tar file" >> gzipTarFile.Extensions = "tgz;tar.gz" >> >> dlg.InitialDirectory = DesktopFolder >> dlg.Filter = gzipTarFile >> f = dlg.ShowModalWithin(Self) >> >> and all files are still selectable when the dialog is displayed. >> >> Thoughts and redirection appreciated. >> _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
