Board index » delphi » RichEdit PaintTo method doesn't seem to work

RichEdit PaintTo method doesn't seem to work

I have been trying to use the TRichEdit.PaintTo method , painting to a
TCanvas, but it doesn't seem to work. Nothing shows up.

Does the TRichEdit need to be showing? If so is there a way of forcing
it to draw to a canvas thats off the screen ?

Help appreciated....

 

Re:RichEdit PaintTo method doesn't seem to work


Quote
> I have been trying to use the TRichEdit.PaintTo method , painting to a
> TCanvas, but it doesn't seem to work. Nothing shows up.

  Paul,

  PaintTo does not work for all controls, it is dependent on some
officially undocumented parameter to WM_PAINT, which not all controls
process.

Quote
> Does the TRichEdit need to be showing? If so is there a way of forcing
> it to draw to a canvas thats off the screen ?

There is, examine the help for EM_FORMATRANGE and EM_DISPLAYBAND in
win32.hlp.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitely requested!

Other Threads