Is it possible to make a richview's background transparent?
Is it possible to make a richview's background transparent?
There may be a panel blow. And I need the richview be transparent. How can I make it work this way?
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.