本文整理自网络,侵删。
if key = vk_return then//设置回车代替tab键
with a do
begin
if Col=(ColCount-FixedCols) then
begin
if Row<(RowCount-FixedRows) then
begin
Row := Row+1;
Col := 1;
end;
if Row=RowCount-FixedRows then
begin
RowCount:=RowCount+1;
Row := Row+1;
Col := 1;
end;
end
else
Col:=Col+1;
end;
相关阅读 >>
pos、ansipos、fillchar在Delphi2010中unicode的问题
Delphi 使用google translate实现tts
如何在Delphi中禁用关于“返回值...可能未定义”的警告?
更多相关阅读请进入《Delphi》频道 >>