Do FireMonkey controls have the equivalent of the VCL Invalidate () method?

I am creating FireMonkey GUI controls. Components should be updated in response to user interaction. VCL controls can call Invalidate () to queue for redrawing. Does FireMonkey have an equivalent method?

FireMonkey controls have the Repaint () method, but AFAICT, which causes the control to redraw immediately. In some cases, a queue type system would be more appropriate.

+6
source share
2 answers
Control.InvalidateRect(RectF(0,0,width,height)); 
+2
source

FireMonkey TControl.Repaint terminates the call to TPlatformWin.ReleaseWindow. If Form.Transparency is false, this method calls the Windows InvalidateRect function, as does TControl.Invalidate VCL.

So, redrawing actually does the same thing as VCL Invalidate, if only Form.Transparency = true.

+2
source

Source: https://habr.com/ru/post/903247/


All Articles