Starts an update to the image list, and controls execution of the OnChange event.
Source position: imglist.pp line 339
public procedure TCustomImageList.BeginUpdate; |
Call BeginUpdate when an update to the image list is started to control execution of the OnChange event handler in Change.
BeginUpdate is used, along with EndUpdate, to speed up the insertion or modification 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. The DoAfterUpdateStarted method is called to perform any actions needed in the image list when an update is started. It is called when the internal counter is set to 1; subsequent calls to BeginUpdate do not call DoAfterUpdateStarted until the update count has returned to 1.
EndUpdate is used to perform action needed when an update is completed and to decrement the internal update counter. When the counter contains a positive non-zero value, the OnChange event handler is not executed when the image list is changed.
Modified in LCL version 3.0 to call the DoAfterUpdateStarted method.
|
Finishes an update to the image list, and calls Change. |
|
|
Event handler signalled when the image list is changed. |
|
|
Sends change notifications when the image list is updated. |
|
|
Sets the value in the internal Changed flag to True. |
|
|
Performs actions needed after the BeginUpdate method is started. |
|
|
Performs actions needed before the EndUpdate method is completed. |
Lazarus Component Library (LCL) | Version 3.99-1b97b99691 (2024-09-01) | Home |