<div dir="ltr"><div class="gmail_quote">On Sat, Jun 16, 2012 at 11:37 AM, Mattias Gaertner <span dir="ltr"><<a href="mailto:nc-gaertnma@netcologne.de" target="_blank">nc-gaertnma@netcologne.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Sat, 16 Jun 2012 11:29:34 +0300<br>
Zaher Dirkey <<a href="mailto:parmaja@gmail.com">parmaja@gmail.com</a>> wrote:<br>
<br>
> Hi Lazarus team,<br>
><br>
> I know it is not Delphi compatibility.<br>
><br>
> In OpenDialogs or SaveDialog if i set DefaultExt value and execute, and<br>
> type file name without an extension, the file name return with the<br>
> extension from the first extension in the filter.<br>
><br>
> 1 - DefaultExt not work until filter is empty<br>
> 2 - DefaultExt is nonsense if the Filter is set<br>
><br>
> Most programmers set the filter except the newbie ones, then mostly<br>
> DefaultExt is nonsense.<br>
><br>
> My problem is my project collect the filter from the plugins, i can't sort<br>
> it manually to put the default extension to the first, DefaultExt come not<br>
> useful for me.<br>
<br>
</div></div>How does the user of your application know the default<br>
extension?<br>
<br>
Mattias<br>
<br></blockquote><br clear="all"></div>For example, my project is an editor for multitype files, PAS, LFM, SQL<br>now the default is PAS and it is the first extension, not problem<br>the user open SQL file, now he make SaveAs and type new name without extension, here the dialog return it as PAS extension.<br>
<br><div dir="ltr">Best Regards<br>Zaher Dirkey</div><br>
</div>