Hello,
I can't figure out how to capture the delete key press.
I found out that in ASCII code table, it is at 127 place, but if (Key = #127) then
got me nowhere.
Then i checked the value of VK_DELETE
which was 47. Tried to use that, but it didn't work.
The KeyPreview := true
is set in my form.
I tried to add the ShowMessage(IntToStr(Ord(Key)))
to the Forms KeyPress event, but i never got the message popup while clicking the delete key.
I need to handle the delete key press in dynamicaly created Edit fields. I want to control what part of the text user can erase in that field, and i know how to handle the text deletion using backspace key, now need to figure out how to do it with delete key.
Thanks