LazControls

From Free Pascal wiki
Revision as of 17:40, 22 May 2012 by Lainz (talk | contribs) (Created page with "LazControls is a set of controls that are often used in Lazarus. ==TListFilterEdit== This is a control that can easily filter a ListBox. Once property TListFilterEdit.Filte...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

LazControls is a set of controls that are often used in Lazarus.

TListFilterEdit

This is a control that can easily filter a ListBox.

Once property TListFilterEdit.FilteredListBox is assigned then TListFilterEdit makes copy of ListBox.Items and works with it. If you add ListBox.Items.Add later, then these data does not appear in TListFilterEdit.

You should do always:

TListFilterEdit.FilteredListBox:=nil; //Add data to ListBox TListFilterEdit.FilteredListBox:=ListBox;