BeginUpdate;
BeginUpdate();
The BeginUpdate method disables a set of internal mechanisms for accelerating insertion of terms into the component.
After calling the BeginUpdate method and before calling the EndUpdate method the following mechanisms will be disabled in the component:
Text rerendering.
Calculation and rerendering of component scroll bars.
Calculation and changing of cursor position.
Handling of the OnChange event.
NOTE. This method does not disable component rerendering. To disable rerendering, use the corresponding methods BeginUpdate/EndUpdate of the form.
Sub InsertTerm(Control: ITermEdit);
Begin
Control.BeginUpdate;
//...
//Inserting terms
//...
Control.EndUpdate;
End Sub InsertTerm;
This example shows general principles of using the BeginUpdate/EndUpdate methods for the TermEdit component.
Sub InsertTerm(Control: ITermEditNet);
Begin
Control.CtrlBox.BeginUpdate();
//...
//Inserting terms
//...
Control.CtrlBox.EndUpdate();
End Sub;
This example shows general principles of using the BeginUpdate/EndUpdate methods for the TermEditNet component.
See also: