Re: Delphi components with BeginUpdate / EndUpdate

Posted by webmaster Guido on January 26, 2005 at 20:20:55:

In Reply to: Speed up Delphi list components posted by Johan P14205 on January 26, 2005 at 11:10:14:

: I read your tip "Speed up the display of ListBox and Memo" in the Code Snips. Can this technique be used for other components than what is mentioned in this article? (ListBox, Memo, TreeList, ListView)

Some important Delphi classes that have the BeginUpdate / EndUpdate methods are: TCollection, TListItems, TStrings, TTreeNodes. You can use BeginUpdate / EndUpdate for all the components that have a property of one of these types, such as:

- the Items property of TCheckListBox, TComboBox, TListBox, TListView, TRadioGroup, TStatusPanel, TTreeView
- the Lines property of TMemo, TRichEdit
- the properties Cols and Rows of TStringGrid

[ Delphi Forum and Tutorials -- by DelphiLand ]