[Overview][Types][Classes][Procedures and functions][Index] |
Finishes an update to the image list, and calls Change.
Source position: imglist.pp line 337
public procedure TCustomImageList.EndUpdate; |
EndUpdate is used to finish an update to images in the list. EndUpdate is used, along with BeginUpdate, to speed up image list updates by blocking execution of the OnChange event handler.
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. When the counter reaches zero (0), the Change method is called to perform OnChange notifications.
EndUpdate cannot be called more often than the BeginUpdate method. If the method would cause the internal counter to contain a negative value, the RaiseGDBException method is called to raise an exception for the condition.
|
Starts an update to the image list, and blocks execution of the OnChange event. |
|
|
Sends change notifications when the image list is updated. |
|
|
Event handler signalled when the image list is changed. |
lazarus-ccr.sourceforge.net |