Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-04

Filtering shown files in TShellListView

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Santhoff

Hi,

I discovered the excellent TShellTreeView and TShellListView.

How would I filter the shown files in TShellListView to a single or a few types, like '*.txt' or '*.txt; '*.rtf'?

TIA,
Marc

Marc Santhoff

Reply by email

Marc Santhoff
to Bart
Bart wrote 8 lines
On 4/10/16, Marc Santhoff wrote: > I discovered the excellent TShellTreeView and TShellListView. > > How would I filter the shown files in TShellListView to a single or a > few types, like '*.txt' or '*.txt; '*.rtf'? I don't think you can.

I thought so too, but only because I didn't look for the "Mask" property of TCustomShellListView. :)

Work nicely, like in file dialogs and the like. Great code.

Marc Santhoff

Reply by email

Bart
to Marc Santhoff
Marc Santhoff wrote
I thought so too, but only because I didn't look for the "Mask" property of TCustomShellListView. :)

I didn't see it in OI, was too lazy to look it up in the source. Looks like a property that should be published?

Bart

Reply by email

Marc Santhoff
to Bart
Bart wrote 7 lines
On 4/10/16, Marc Santhoff wrote: > I thought so too, but only because I didn't look for the "Mask" property > of TCustomShellListView. :) I didn't see it in OI, was too lazy to look it up in the source. Looks like a property that should be published?

I think so. I only found it when I wanted to start implmenting it myself while looking at the list population code. ;)

Marc Santhoff

Reply by email

Bart
to Marc Santhoff
Marc Santhoff wrote 5 lines
> I didn't see it in OI, was too lazy to look it up in the source. > Looks like a property that should be published? I think so. I only found it when I wanted to start implmenting it myself while looking at the list population code. ;)

Done in r52165 (trunk).
Since this is not a bug, it will not be merged to 1.6 fixes branch I think.

Bart

Reply by email

Marc Santhoff
to Bart
Bart wrote 9 lines
On 4/11/16, Marc Santhoff wrote: >> I didn't see it in OI, was too lazy to look it up in the source. >> Looks like a property that should be published? > > I think so. I only found it when I wanted to start implmenting it myself > while looking at the list population code. ;) Done in r52165 (trunk).

Thank you.

Since this is not a bug, it will not be merged to 1.6 fixes branch I think.

I can live with that, now that I know. ;)

Marc Santhoff

Reply by email