如何实现窗体上的闪烁标签 [英] How to implement a blinking label on a form

查看:144
本文介绍了如何实现窗体上的闪烁标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个显示这个消息可以被更改的消息和数量的队列形式。真欲闪烁标签(队列长度)时分别增加消息的数目,提高表单的可用性。
我应该实现自定义的控制,并使用额外的线程或定时器来改变标签的颜色?已经实施了这样有人功能?什么是最好的解决方案(较少的资源和较少的性能退化)来实现这样的行为

I have a form that displays queue of messages and number this messages can be changed. Really I want to blink label (queue length) when the number of messages were increased to improve form usability. Should I implement custom control and use additional thread or timer to change color of label? Has anybody implemented so functionality? What is the best solution (less resources and less performance degradation) to implement so behaviour?

解决方案:

表单与定时器组件,可以限制每秒动画的数量和落实淡出效果外部控制的背景颜色。

Form's component with timer that can restrict number of animations per second and implement fade out effect to external control background color.

推荐答案

您可以创建自定义组件和开始闪烁事件。我认为这是很好的解决方案。闪烁您可以用定时器实现。

You can create custom component and events for start blinking. I think is good solution. Blinking you can implement with timer.

这篇关于如何实现窗体上的闪烁标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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