trichview.com

trichview.support




Re: Deleting protected text


Return to index


Author

Message

Katerina Sedivy

Posted: 08/19/2002 18:26:49


If you want you can code the behavior wanted in the OnKeyDown, when pressing

BackSpace:


Example:


if  Key = VK_BACK  then

begin

    {You may use GetCurrentTextInfo or GetTextInfo}

    RichViewEdit1.GetCurrentTextInfo(ls_Text, li_Tag);

    li_TextLength := RichViewEdit1.Canvas.TextWidth(ls_Text);

    RichViewEdit1.SetSelectionBounds(RichViewEdit1.CurItemNo, li_TextLength

, RichViewEdit1.CurItemNo, 1);

    RichViewEdit1.DeleteSelection;

end;


Of course you can also create the behavior when pressing the Delete key.





Powered by ABC Amber Outlook Express Converter