delphi StringGrid中回车换行


本文整理自网络,侵删。

 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;

相关阅读 >>

Delphi 如何在webservice中获取客户端的ip地址

Delphi 遍例一个外部程序中所有的类名

Delphi tstringlist 自带 split 用法

Delphi 在xp/2k 下实现 win+ctrl+del 等键的屏蔽的方法

Delphi中使用tthread类实现多线程

Delphi trestclient + trestrequest + trestresponse

Delphi 内存管理[6]

Delphi xe-xe3下最简单的获取硬盘序列号

Delphi中内嵌汇编

Delphi获取本机mac地址方法

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...