禁用Vista Aero上的进度条动画 [英] Disabling progress bar animation on Vista Aero

查看:168
本文介绍了禁用Vista Aero上的进度条动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi 2009 VCL TProgressBar作为一种空/全规格。



在Vista上,启用Aero主题,这有一个动画是否有任何方法禁用此功能(不是通过调整用户的主题设置!)来防止在此上的动画。



控制?



要澄清,我想要的东西基本上与Windows资源管理器中的使用的磁盘空间米相同。没有动画,但仍然有一个很好的边框和阴影效果。



更新:



我明白我需要一个米,而不是一个真正的进度条。如何使用标准的Windows进度条控件实现主题的仪表?

解决方案

根据进度条的Vista UI指南你根本不应该使用TProgressBar来实现这个目的,它说:


仅使用进度条进度。使用米表示与进度无关的百分比。


有很多第三方组件(例如 Abakus VCL ),也许您可​​以使用这些控件之一? p>

I'm using a Delphi 2009 VCL TProgressBar as a kind of "empty/full" gauge.

On Vista, with Aero theme enabled, this has an animation associated with it, which is annoying and inappropriate for an gauge.

Is there any way of disabling this (NOT by adjusting user's theme settings!) to prevent the animation on this control?

To clarify, I want something basically identical to the 'disk space used' meters in Windows Explorer. No animation, but still with a nice border and shading effects.

Update:

I understand that I need a "meter", rather than a true progress bar. How can a themed meter be implemented using the standard windows progress bar control?

解决方案

As per the Vista UI guidelines for progress bars you should not be using a TProgressBar for such purposes at all, it states:

Use progress bars only for progress. Use meters to indicate percentages that aren't related to progress.

There are a lot of Third-Party components (for example Abakus VCL) that are aimed at Process Automation applications and the like, maybe you could use one of these controls instead?

这篇关于禁用Vista Aero上的进度条动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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