Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Allowing the <code>ProcessMessages</code> to continue even if it sends messages you don't want should not be classed as problematic. With a bit of code refactoring, you could move the buffering method into a separate thread and go from there.</p> <p>If you are attempting to copy the "visual contents" of a control into a file,</p> <ul> <li>look at the WM_PRINT(xxx) message which allows child controls to paint themselves into bitmaps</li> <li>try the <code>LockWindowUpdate</code> Win32 API method call which will turn off all painting messages to that control</li> <li>override the <code>WndProc</code>/<code>DefaultWndProc</code> method on your control class or even the parent class if you need to and simply return "true" for each message sent</li> <li>override specific control methods (such as "scroll bar moved", "<code>OnPaint</code>", "<code>OnPaintBackground</code>" etc) on the control class or even the parent and simply do nothing if your buffering is in progress</li> </ul> <p>Overriding the <code>WndProc</code> or <code>DefaultWndProc</code> and simply returning true for each message essentially "turns off" <code>ProcessMessages</code> <em>but</em> it's not safe to do it this way because the control might need to process one or more messages to function correctly.</p> <p>Turning off <code>ProcessMessages</code> is not possible (without rewriting the VCL code for message processing) because of the fact that it's part of how the VCL form's message loop has been constructed. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload