BeginUpdate;
BeginUpdate();
The BeginUpdate method disables a set of internal mechanisms to speed up inserting 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 scrollbars.
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;
//...
//Insert terms
//...
Control.EndUpdate;
End Sub InsertTerm;
The specified example shows general principles of using the BeginUpdate/EndUpdate methods for the TermEdit component.
Sub InsertTerm(Control: ITermEditNet);
Begin
Control.CtrlBox.BeginUpdate();
//...
//Insert terms
//...
Control.CtrlBox.EndUpdate();
End Sub;
The specified example shows general principles of using the BeginUpdate/EndUpdate methods for the TermEditNet component.
See also: