XP themes

General TRichView support forum. Please post your questions here
Post Reply
WhiteBird
Posts: 4
Joined: Tue Jun 06, 2006 6:25 pm

XP themes

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17310
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply