Page 1 of 1
Is it possible to make a richview's background transparent?
Posted: Sun Oct 30, 2005 3:18 am
by cryingfox
There may be a panel blow. And I need the richview be transparent. How can I make it work this way?
Posted: Sun Oct 30, 2005 2:31 pm
by Michel
Take a "snapshot" of whatever is behind RichView (the relevant portion of your panel) and use it as RichView's background image?
Posted: Sun Oct 30, 2005 10:07 pm
by Sergey Tkachenko
Yes, transparency is not supported directly. One of possible solutions is suggested by Michel.
Another solution.
It may be useful if you create a kind of report including TRichView objects. Draw the document into a metafile and display this metafile instead of TRichViewEdit. If you need an inplace editing, place TRichViewEdit over this metafile when the user clicks at this area.
For drawing document into a metafile, see the demo Demos\Delphi\Assorted\Graphics\ToImage\.
Set RVReportHelper.TransparentBackground = True.