[Lazarus] DefaultExt and Filter priority.

Zaher Dirkey parmaja at gmail.com
Sun Jun 17 16:03:32 CEST 2012


On Sun, Jun 17, 2012 at 1:42 PM, Bart <bartjunk64 at gmail.com> wrote:

> 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.
>
>
Yes index is useful here but, what if we have in one line more than
extension (*.pas *.pp *.inc) like as in Lazarus, here i need to fix it
manually.

Except if it fixed in LCL when the DefaultExt include in (*.pas *.pp *.inc)
so it must use DefaultExt.

I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3

Best Regards
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120617/16a7c045/attachment-0003.html>


More information about the Lazarus mailing list