Difference between revisions of "LazControls"

From Free Pascal wiki
Jump to navigationJump to search
(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...")
 
Line 9: Line 9:
 
You should do always:
 
You should do always:
  
 +
<syntaxhighlight>
 
TListFilterEdit.FilteredListBox:=nil;
 
TListFilterEdit.FilteredListBox:=nil;
 
//Add data to ListBox
 
//Add data to ListBox
 
TListFilterEdit.FilteredListBox:=ListBox;
 
TListFilterEdit.FilteredListBox:=ListBox;
 +
</syntaxhighlight>

Revision as of 18:15, 22 May 2012

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;