RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCanvas.LockCount Property

Indicates the number of times the canvas has been locked to prevent interference from other threads.

Pascal
property LockCount: Integer;
C++
__property int LockCount;

Read LockCount to determine whether the canvas is locked. Whenever the Lock method is called to block other threads from interfering with the canvas, LockCount increases. Whenever the Unlock method is called at the end of a critical section, LockCount decreases. When LockCount is 0, other threads may draw on the canvas. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!