TryLock - examines the Lock state, and performs Lock if necessary
Source position: graphics.pp line 1067
public function TCanvas.TryLock: Boolean;