procedure Paint; virtual;
Processes a paint request from the terminal component.
The terminal component performs no painting of its own. Instead, it defers that job to the emulator component, where the knowledge of such processing for a given terminal is embodied.
There are two types of painting to be done. The first is painting because the new data that has come from the serial device needs to be shown (this could be triggered by the lazy display processing of the terminal, for example). The second is painting due to all or part of the terminal component's client window being invalidated and Qt has issued a QEventType_Paint message. The Paint method is called in the latter case. The emulator should find out the clipping region of the invalidated window and redraw the text contained there, using the internal buffer object to define the colors, attributes, character sets and so on.
The Paint method of the emulator is called by the Paint method of the terminal component, the standard CLX virtual method for TWidgetControl descendants.
See also: BlinkPaint, LazyPaint