Page 1 of 1

XP themes

Posted: Wed Jun 07, 2006 2:23 pm
by WhiteBird
I use XP manifest in my application, so all controls are drawn in XP style.
When i place them inside TRichViewEdit they appear in XP-style too.
This is ok.

But when i use TWinControl.PrintTo method of TRichViewEdit to paint it on custom canvas (f.e. TImage.Canvas) all controls are printed in old, Windows95/98 style.

Please help. I don't understand why it happens.
Is there alternative method of TRichViewEdit printing that prints embedded controls in XP style?

Posted: Wed Jun 07, 2006 6:25 pm
by Sergey Tkachenko
No, sorry.
You can draw XP border yourself, and then draw TRichView without border (see Demos\Delphi\Assorted\Graphics\ToImage\ how to draw TRichView on Canvas)