[Lazarus] DefaultExt and Filter priority.

Bart bartjunk64 at gmail.com
Sun Jun 17 12:42:09 CEST 2012


On 6/16/12, Zaher Dirkey <parmaja at gmail.com> wrote:

> For example, my project is an editor for multitype files, PAS, LFM, SQL
> now the default is PAS and it is the first extension, not problem
> the user open SQL file, now he make SaveAs and type new name without
> extension, here the dialog return it as PAS extension.

Set FilterIndex to the appropriate value depending on the currently
opened file-extension?
See LazEdit (http://wiki.lazarus.freepascal.org/LazEdit) for example.

Bart




More information about the Lazarus mailing list