I am working on a TRichEdit (Delphi XE2).
Is there any way i can check whether the richedit textbox contains protected text or not? Also the starting position of that protected text without iterating through the complete text.
Currently i am using the code below
source.SelStart := charNo; //source is richedit name and charno is the
//iterating loop
source.SelLength := 1;
if (source.SelAttributes.Protected) then
The above code takes a lot of time for execution when the text is large.
This used to work fine in delphi 4
Can someone please tell why is the same code talking more time in delphi XE2 and less time in Delphi 4 also the proper way to do this in Delphi XE2?