逐像素滚动TStringGrid [英] Scrolling the TStringGrid pixel by pixel

查看:62
本文介绍了逐像素滚动TStringGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用其水平滚动条滚动TStringGrid将一次滚动一列.在某些情况下,这会造成一个令人讨厌的行为,使网格无法使用:如果最后一列的宽度很大(例如1000像素),则用户将无法滚动网格以查看该列的全部内容.

Scrolling a TStringGrid using its horizontal scroll bar will scroll a column at a time. In some situations, this creates a really nasty behavior that makes the grid unusable: if the width of last column is large (example, 1000 pixels) the user won't be able to scroll the grid to see the entire content of the column.

有一种按像素滚动的方法吗?还是为网格的滚动条设置正确的滚动范围?

There is a way to scroll by pixel? Or to set the correct scroll range for grid's scroll bar?

推荐答案

我已经研究了源代码.使用Borland的代码无法完成.但是,拉撒路(Lazarus)具有此功能.

I have looked into the source code. With Borland's code it can't be done. However, Lazarus has this capability.

这篇关于逐像素滚动TStringGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆