ImageEn, unit rulerbox

TRulerBox.LockUpdate

TRulerBox.LockUpdate


Declaration

procedure LockUpdate();


Description

Prevents redrawing of the control while you are setting many properties. Call LockUpdate before setting properties, and then UnlockUpdate to resume drawing.

Note: Multiple LockUpdate can be in use at once. The control will not be updated until an equal number of UnlockUpdate calls have been made.


Example

RulerBox1.LockUpdate();
RulerBox1.DotPerUnit := 1;
RulerBox1.Frequency := 20;
RulerBox1.LabelFreq := 100;
RulerBox1.UnlockUpdate();