替换“StepIt”从 ProgressBar 到 cxProgressBar
我刚刚用 cxProgressBar 替换了常见的进度条,但是我注意到它没有“StepIt”方法。
我用这个替换了 StepIt:
progressbar1.Position := progressbar1.Position+1;
我不认为它是最好的选择,因为进度比 StepIt 慢得多。
为了设置最大值,我获取了 sql 表上将被转换为本地缓存的字段总数。
除了常见的 ProgressBar 之外,我从未尝试过任何其他东西,这就是我遇到这个问题的原因。
谢谢。
I've just replaced my common progress bar with a cxProgressBar, I noticed, however, that it does not have the method 'StepIt'.
I replaced StepIt with this:
progressbar1.Position := progressbar1.Position+1;
I do not think it to be the best choice since the Progress takes much slower than StepIt.
To set the maximum value I get a total counts of fields on the sql table that it's going to be converted into local cache.
I have never tried anything other than the common ProgressBar, that's why I came across this issue.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自在线帮助: http://docwiki.embarcadero.com/VCL/en/ ComCtrls.TProgressBar.StepIt
下面的代码应该可以解决问题。
From the online help: http://docwiki.embarcadero.com/VCL/en/ComCtrls.TProgressBar.StepIt
The following code should do the trick.