Solved

RichEdit w/Transparent background?

Posted on 1997-05-16
1
1,377 Views
Last Modified: 2013-11-22
I'm New to making my own components but could someone give me an example on how to make the background of a RichEdit component transparent? Couldn't I make a new component and inherit everything then override the paint command or just change the brush style to bsClear for the background? I need an example to work from. Please Help!!!!!

Thanks,
Rick S.
0
Comment
Question by:Rick_S
1 Comment
 
LVL 4

Accepted Solution

by:
StevenB earned 80 total points
Comment Utility
 Unfortunately making a transparent RichEdit is not as simple as just overriding the paint method. The delphi TRichEdit is a wrapper object for a windows RichEdit component, therefore the paint functions are not in the delphi VCL source code, rather embedded in the windows system. It is possible to make a transparent windowed control using API calls, but it's quite tricky and I suspect that it's not the best approach for a TRichEdit,(If only because I've been looking for transparent RichEdits for some time now, and I'd have found one if anyone had done it). There are two options really available to you:

1) Start from scratch and write your own RTF display object. This needn't be as huge a task as it first seems, if you are only interested in Rich Text labels, rather than editors.
2) Obtain one of the many components avaiable on the Web which do this sort of thing for you.

  If you opt for the first method then good luck, you'll be needing the RTF specifications which I'll happily mail to you if you want. If you go for the second method thaen you could do a lot worse than if you checked out the following:

A Transparent RichEdit :
http://members.aol.com/jziersch/index.html

General Component Sites:
http://www.intermid.com/sherlock/compmall.htm
http://SunSITE.icm.edu.pl/delphi/
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now