JVCL Help:TJvCustomRichEdit.OnProtectChangeEx
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCustomRichEdit.OnProtectChangeEx Event
[+] TJvCustomRichEdit Events
[+] TJvCustomRichEdit Methods
[+] TJvCustomRichEdit Properties
Search in JVCL Help
Search in all projectsSummary
Occurs when a user attempts to modify text that is marked as protected.
Pascal
TRichEditProtectChangeEx = procedure (Sender: TObject; const Msg: TMessage; StartPos, EndPos: Integer; var AllowChange: Boolean) ofobject;
propertyOnProtectChangeEx: TRichEditProtectChangeEx;
Parameters
Parameters | Description |
EndPos | Indicates the end of the range of text, that would be affected by the modification, where 0 is the first character in the text. |
AllowChange | Specifies whether to allow modification of protected text. |
StartPos | Indicates the beginning of the range of text, that would be affected by the modification, where 0 is the first character in the text. |
Sender | Rich Edit control that has fired this event. |
Msg | Message that triggered the notification. |
Description
Write an OnProtectChange event handler to allow modification of text with the protected attribute.
To allow modification of protected text, set AllowChange to true.
To set or unset the protected attribute for a section of text, select the text and use the Protected property of the rich edit control’s SelAttributes property. To cause text to have the protected attribute by default, use the Protected property of the rich edit object’s DefAttributes property.
See Also
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page