function UnlockPaint: integer;
Decrement the lock paint counter
(use after calling LockPaint
If the lock count is zero, then Update
is called to refresh the view.
Returns the lock count.
// Disable painting of component
... Perform activities, e.g. appending many files
// Re-enable painting and refresh view