<div dir="ltr"><br><div class="gmail_quote">On Sun, Jun 17, 2012 at 1:42 PM, Bart <span dir="ltr"><<a href="mailto:bartjunk64@gmail.com" target="_blank">bartjunk64@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 6/16/12, Zaher Dirkey <<a href="mailto:parmaja@gmail.com">parmaja@gmail.com</a>> wrote:<br>
<br>
> 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<br>
> extension, here the dialog return it as PAS extension.<br>
<br>
</div>Set FilterIndex to the appropriate value depending on the currently<br>
opened file-extension?<br>
See LazEdit (<a href="http://wiki.lazarus.freepascal.org/LazEdit" target="_blank">http://wiki.lazarus.freepascal.org/LazEdit</a>) for example.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>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.<br>
<br clear="all"></div></div>Except if it fixed in LCL when the DefaultExt include in (*.pas *.pp *.inc) so it must use DefaultExt.<br><br><div dir="ltr">I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3<br><br>
Best Regards<br>Zaher Dirkey</div><br>
</div>