[Lazarus] DefaultExt and Filter priority.
nc-gaertnma at netcologne.de
Sun Jun 17 16:29:12 CEST 2012
On Sun, 17 Jun 2012 17:03:32 +0300
Zaher Dirkey <parmaja at gmail.com> wrote:
> 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
> Except if it fixed in LCL when the DefaultExt include in (*.pas *.pp *.inc)
> so it must use DefaultExt.
IMO the user should see what the default extension is. A function is
needed to move an extension to the front. I don't know how this
works for RTL languages.
> I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3
More information about the Lazarus