I'm using a RichViewEdit to add text and images in it. I'd like to know how I can protect images that I paste in it.
Currently, I use this code to protect the whole text I have in the RichViewEdit and that works fine.
Code: Select all
SRichViewEdit.RichViewEdit.Controls[iNbControls]).SelectAll;
SRichViewEdit.RichViewEdit.Controls[iNbControls].GetSelectionBounds(mStartItemNo, mStartItemOffs, mEndItemNo, mEndItemOffs, True);
while ( mStartItemNo <= mEndItemNo ) do
begin
SRichViewEdit.RichViewEdit.Controls[iNbControls].RVData.GetItem(mStartItemNo).StyleNo := 6;
mStartItemNo := mStartItemNo + 1;
end;
I'd like to know if there's any solution to my problem.
Regards,
- Charles