
| Subject: | TSaveDialog - Filter Selection & Feedback |
| Posted by: | Andrej Mit |
| Date: | Sun, 28 Dec 2008 |
Hello!
I've created a TSaveDialog in my application. The app is an mp3 player. Basically I want the user to be able to save their playlists to either *.pls, *.m3u or *.m3u8. Now, I've allready implemented the algorithm for each of these different playlist types. I've also added the 3 filters in the TSaveDialog Filter Editor - each filter on it's own line of course.
The problem is that I am unable to find any method or property in TSaveDialog that can return a value telling me which of the 3 filters the user has selected.
Of course I did try a workaround - by copying the last 3 or 4 characters from the TSaveDialog.FileName String to find my extension. However, TSaveDialog does not automatically append an extension after the FileName. It only has that functionality when ofOldStyleDialog is set to True. But that is a really nasty save dialog, I want the user to be able to use the standard one.
Is there any way I can find out what Filter is selected in TSaveDialog?
Thank you for your time!