Re: Ctrl+i in tRichedit (italics NOT indents)


DelphiLand FAQ    DelphiLand Home
Posted by Jean Claude Servaye on August 16, 2000 at 17:53:53:

In Reply to: Ctrl+i in tRichedit (italics NOT indents) posted by 43614 NMartel on August 15, 2000 at 11:14:49:

: how do I make a Ctrl+i keydown event (tRichedit) not execute the standard Indent procedure?


Write this in RichEdit onKeyPress:

begin
  If Key = #9 then 
  begin
    // here place your code 
    Key := #0; // disable indent function 
  end;
end;