Guest User

Untitled

a guest
Jul 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. procedure TForm1.RichEdit1KeyPress(Sender: TObject; var Key: Char);
  2. begin
  3. if Key = chr(VK_TAB) then
  4. begin
  5. beep;
  6. Key := #0;
  7. end;
  8. end;
  9.  
  10. procedure TForm1.RichEdit1KeyDown(Sender: TObject; var Key: Word;
  11. Shift: TShiftState);
  12. var
  13. msg: TMsg;
  14. begin
  15. if Key = VK_TAB then
  16. begin
  17. beep;
  18. while PeekMessage(msg, RichEdit1.Handle, WM_KEYFIRST, WM_KEYLAST,
  19. PM_REMOVE) do;
  20. end;
  21. end;
Add Comment
Please, Sign In to add comment