I Insert some TSRVCheckBox on SRichViewEdit page
and my question is:
How to disable delete these controls?
that means forbid delete these control by press backspace key or delete key.
thanks.
about Insert Control
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
You can set rvepDeleteProtect property:
This code inserts delete-protected checkbox:
(but it quite strange to insert as an editing operation a control that cannot be deleted as an editing operation.
This code inserts delete-protected checkbox:
Code: Select all
with SRichViewEdit1.ActiveEditor.TopLevelEditor do begin
BeginUndoGroup(rvutInsert);
SetUndoGroupMode(True);
if InsertControl('', CheckBox, rvvaAbsMiddle) then
SetCurrentItemExtraIntProperty(rvepDeleteProtect, 1, True);
SetUndoGroupMode(False);
end;