OI have not used these features, but it looks like there is another
way of doing it which is listed in the Users Manual below. Maybe that
would work?
DTL
Using File Type Sets
In the IDE, each file type is shown as one row in the File Types set
table. A File Type
set has the String property "All" that returns all of the file types
in the set. Use All
instead of multiple file types when you want to refer to the group of
file types. Suppose
you create a File Type Set called ImageTypes in which you specify all
of the valid image
FileType Class types that your application can open. You can specify
the entire list of image types with
a line such as:
The other way to do so is with the "+" operator, i.e.,
assuming that the file types JPEG and MacPICT are the members of the
ImageTypes
set. The additional advantage of using All is that you can modify the
members of the
ImageTypes set and you wonÕt need to update your code.
Example The following example dynamically creates two FileTypes, one
for JPEG files and one
for PNG files. It then displays an Open File dialog box that allows
the selection of only
those two file types.
f=GetOpenFolderItem(ImageTypes.All)
f=GetOpenFolderItem(ImageTypes.JPEG + ImageTypes.MacPICT)
Dim jpegType as New FileType
jpegType.Name = "image/jpeg"
jpegType.MacType = "JPEG"
jpegType.Extensions = "jpg;jpeg"
Dim pngType As New FileType
pngType.Name = "image/png"
pngType.MacType = "PNG "
pngType.Extensions = "png"
Dim f As FolderItem
//using the addition and conversion operators...
f = GetOpenFolderItem( jpegType + pngType )
On Jun 21, 2006, at 11:14 AM, Juan Salvatierra wrote:
True. Filtering would be a great idea. How would you do it? I have
used (or tried to) the OpenDialog Filter property to try and
specify the types of files I wanted displayed
d.filter="image/gif;image/jpeg;image/pict;image/png;image/
tiff;image/x-bmp;image/jpeg2000"
All these file types are listed in the File Types window.
But it doesn't seem to work. Maybe I am doing something wrong. Have
you got any advice?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>