FireMonkey控件是否等效于VCL Invalidate()方法? [英] Do FireMonkey controls have an equivalent to the VCL Invalidate() method?

查看:73
本文介绍了FireMonkey控件是否等效于VCL Invalidate()方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一些自定义的FireMonkey GUI控件。组件需要响应用户交互进行更新。 VCL控件可以调用Invalidate()放入队列以进行重新绘制。 FireMonkey是否具有等效的方法?

I'm creating some custom FireMonkey GUI controls. The components need to update in response to user interactions. VCL controls can call Invalidate() to be placed into a queue for repainting. Does FireMonkey have an equivalent method?

FireMonkey控件具有Repaint()方法,但是AFAICT强制立即重新绘制控件。在某些情况下,队列类型系统会更合适。

FireMonkey controls have a Repaint() method, but AFAICT that forces the control to be repainted immediately. A queue type system would be more appropriate in some circumstances.

推荐答案

Control.InvalidateRect(RectF(0,0,width,height));

这篇关于FireMonkey控件是否等效于VCL Invalidate()方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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