trichview.com

trichview.support




Deleting an item as Whole


Return to index


Author

Message

Anderson Wilson

Posted: 06/12/2005 1:03:57


Hi,


I have a Text Item that has the following FontInfo.Protection


FontInfo.Protection := [rvprModifyProtect,

                         rvprConcateProtect,

                         rvprDoNotAutoSwitch];


Now suppose I have the following Items inside RichViewEdit,


Name: [Insert here field NAME]

Address: [Insert here field ADDRESS]


and that everything between '[' and ']' including them is my

text item with the protection above.


Today if I click del or backspace nothing happens.

What I would like is when the user press DEL inside the brackets

everything is deleted.


???The correct way to delete the Item as whole when the user press <DEL>

inside the Item or when he press BackSpace wright after the item is

using ONKeyDown and OnKeyPress and testing if the user typed DEL or

BackSpaces inside the item and then delete the whole item ?


Thanks


Anderson





Powered by ABC Amber Outlook Express Converter