Board index » delphi » Make Enter key acts like the Tab key in TStringGrid

Make Enter key acts like the Tab key in TStringGrid

Is it possible to make the ENTER Key acts like the TAB Key in a TStringGrid,
so when the user presses ENTER,  you move to the next cell in the grid. ?

Please help !

tr...@auticon.no

 

Re:Make Enter key acts like the Tab key in TStringGrid


try the code following :

procedure TForm1.StringGrid1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
   if key = vk_return then key:=vk_tab;
end;

Trond Morken <tr...@auticon.no> a crit dans le message :
80gork$l...@forums.borland.com...

Quote
> Is it possible to make the ENTER Key acts like the TAB Key in a
TStringGrid,
> so when the user presses ENTER,  you move to the next cell in the grid. ?

> Please help !

> tr...@auticon.no

Other Threads