Delphi Haven – There are times when you want to repaint a control immediately, typically to give an indication to the user that something is actually happening during a lengthy bit of processing. In the VCL, this is covered by a troika of methods on TControl: Invalidate posts a message to the event queue saying the control needs to be repainted. Update forces processing of any paint messages pending for the control. Repaint calls Invalidate and Update in succession. That said, sometimes it isn’t even necessary to call one of these methods if the control wraps a native API widget, and the native API ...
Visits by Source
Users who voted for this posting