HI
I have a form where users can insert fields with InsertStringTag.
Now, if the user highlights part of it (with the mouse) for deletion,
I want to make sure the ENTIRE field is deleted. Any easy way?
Thanks
How to delete an entire field partially highlighted?
-
- Site Admin
- Posts: 17564
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry, no.
Yes, it's possible process OnKeyDown and adjust the selection if the user presses Delete on Backspace and fields are partially selected, but:
- if fields are not protected, users still will be able to modify its text;
- selection can be deleted by pressing many other keys.
May be you can simple protect it from modification? Include rvprModifyProtect in the Protection property of its text style. After that, it will be able to delete fields only if they are selected completely.
Yes, it's possible process OnKeyDown and adjust the selection if the user presses Delete on Backspace and fields are partially selected, but:
- if fields are not protected, users still will be able to modify its text;
- selection can be deleted by pressing many other keys.
May be you can simple protect it from modification? Include rvprModifyProtect in the Protection property of its text style. After that, it will be able to delete fields only if they are selected completely.