[lazarus] TFileDialog - Filter.

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jul 21 02:39:32 EDT 2003


On Sun, 20 Jul 2003 19:04:43 -0400
Bob Wingard <bwingard at gt.rr.com> wrote:

> Mattias,
>     Greetings. This will fix the problem with the filter not working 
> properly in the TFileOpen dialog.
> 
> diff against gtkobject.inc
> 4649c4649
> <     CurDescEnd:=CurDescStart;
> ---
>  >     CurDescEnd:=CurDescStart + 1;  
> 4652c4652
> <     CurDesc:=copy(Filter,CurDescStart,CurDescEnd-CurDescStart);
> ---
>  >     CurDesc:=copy(Filter,CurDescStart + 1,CurDescEnd-(CurDescStart +
>  >     1));
> 4663c4663
> <     CurDescStart:=CurMultiMaskEnd+1;
> ---
>  >     CurDescStart:=CurMultiMaskEnd;
> 
> The filter and the filter description were not being properly parsed.

What filter were not properly parsed?


Mattias



> I am not sure if the behavior of the file open dialog is standard for a 
> gtk widget. The filter is applied to both the directory list and the 
> file list. Is this normal? The filter is not applied when the current 
> directory changes, but is applied if the filter is re-selected from the 
> drop down list. This is good for now as the only way to see directories 
> with the filter applied is to change the directory.
> 
> Bob Wingard
> Orange, Texas  USA
> 
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives


-- 






More information about the Lazarus mailing list