Tips and Frequently Asked Questions
Color text on the fly while typing
It is possible to check rules after the user types a word in TAdvRichEditor and based on this, apply formatting to the entered text. This sample code snippet will apply a red color when the user has entered a number value in the TAdvRichEditor:
procedure TForm1.AdvRichEditor1EnterWord(Sender: TObject; AWord: string); var v,e,ci,ss,sl: integer; el: TREElement; begin val(aword, v, e); if (e = 0) then begin // is a number // store current selection ss := AdvRichEditor1.SelStart; sl := AdvRichEditor1.SelLength; ci := AdvRichEditor1.Caret.CharIndex; if AdvRichEditor1.Caret.Element.Text[ci] = '' '' then dec(ci); // set selection to entered word to apply new color AdvRichEditor1.Selection.FromElement := AdvRichEditor1.Caret.Element; AdvRichEditor1.Selection.FromChar := ci - Length(AWord); AdvRichEditor1.Selection.ToElement := AdvRichEditor1.Caret.Element; AdvRichEditor1.Selection.ToChar := ci; AdvRichEditor1.SetSelectionColor(clRed); // restore current selection AdvRichEditor1.SelStart := ss; AdvRichEditor1.SelLength := 0; AdvRichEditor1.SelectionToCaret; AdvRichEditor1.SetSelectionColor(clBlack); end; end;
Pricing
Single Developer License
Small Team License
Site License
TMS VCL UI Pack
€ 375
€
150
yearly renewal
license for 1 developer
MOST POPULAR
BEST VALUE
All prices excl. VAT. Renewal price is subject to change and only valid up to 30 days after license has expired. After renewal period a discount price is offered to renew the license.
Free Trial
Note that the TMS VCL UI Pack replaces the TMS Component Pack. Both products can't be installed simultaneously. Therefore TMS Component Pack must first be uninstalled before installing the TMS VCL UI Pack