Unit 'ImgList' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]

TCustomImageList.BeginUpdate

Starts an update to the image list, and blocks execution of the OnChange event.

Declaration

Source position: imglist.pp line 336

public procedure TCustomImageList.BeginUpdate;

Description

Use BeginUpdate when an update to the image list is started to block execution of the OnChange event handler.

BeginUpdate is used, along with EndUpdate, to speed up the insertion of images in an image list. Every call to BeginUpdate must be matched by a call to EndUpdate; i. e. update operations can be nested.

BeginUpdate increments an internal counter in the class instance each time the method is called. EndUpdate decrements the internal counter when called. When the counter contains a positive non-zero value, the OnChange event handler is not executed when the image list is changed.

See also

TCustomImageList.EndUpdate

  

Finishes an update to the image list, and calls Change.

TCustomImageList.OnChange

  

Event handler signalled when the image list is changed.

TCustomImageList.Change

  

Sends change notifications when the image list is updated.