Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if key = 13 then
  2. begin
  3. if StringGrid.Col < (StringGrid.ColCount - 1) then
  4. begin
  5. StringGrid.Col := StringGrid.Col + 1;
  6. end
  7. else
  8. if StringGrid.Row < (StringGrid.RowCount -1) then
  9. begin
  10. StringGrid.Col:= StringGrid.FixedCols;
  11. if StringGrid.Row < (StringGrid.RowCount -1) then
  12. StringGrid.Row := StringGrid.Row + 1
  13. end
  14. else
  15. Perform(WM_NEXTDLGCTL,0,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement