Board index » cppbuilder » TOpenDialog; setting Filter during runtime

TOpenDialog; setting Filter during runtime

Hi!
 

Re:TOpenDialog; setting Filter during runtime


Hi

Forget the previous post, i hit the wrong button!

I want to create several filter during runtime in an TOpenDialog like this:

Word-document (*.doc) : *.doc
Word-template (*.dot) : *.dot
Word-documents(*.dot;*.doc) :  *.dot;*.doc
All documents (*.*) : *.*

Now i need the same for a different language, so i have to switch when the
users chooses one

How can I do that?
Thnx Karsten

Re:TOpenDialog; setting Filter during runtime


Quote
Karsten Becker <K.Becker> wrote in message news:3bb08158$1_2@dnews...
> I want to create several filter during runtime in an TOpenDialog
like this:

> Word-document (*.doc) : *.doc
> Word-template (*.dot) : *.dot
> Word-documents(*.dot;*.doc) :  *.dot;*.doc
> All documents (*.*) : *.*

You haven't made it clear whether you are asking a "multilanguage
support" question, or a purely TOpenDialog question.  But the
instructions for constructing filters at runtime are in the Help page
for TOpenDialog::Filter.  If the dialog has already been displayed
(i.e. Execute()-ed), it is harder but should still be possible.  You
might care to check the search engine noted below for language support
ideas.  It's not BCB "business", but I wonder whether there might be a
way to get the specific list you show from Word or it's registry
entries *itself*, if the user is sure to have Word.  But I can't tell
you how.
-------
Timothy H. Buchman
========================================
City Center Theater, New York NY
mail address tbuchmanPLEASE(at sign)REMOVEcitycenter.org
Please treat this signature information as confidential.
========================================
Search .borland message archive on http://www.mers.com/searchsite.html

Other Threads