Solved

TRichEdit behavior (moderate)

Posted on 1998-03-24
6
139 Views
Last Modified: 2010-04-06
Delphi 2's RichEdit always clear part of its background to white whenever you show all scrollbars (ssBoth), set wordwrap to false, HideScrollbar to true and resize its owner window (or just type on a line until a horizontal scrollbar appears).  Can anyone tell me how to fix it?
(repainting on the owner control's OnResize is not considered an option altho it can partly solve it)
0
Comment
Question by:wy2lam
  • 3
  • 3
6 Comments
 

Author Comment

by:wy2lam
ID: 1360821
Adjusted points to 80
0
 
LVL 1

Expert Comment

by:extreme
ID: 1360822
I have the same problem and the only easy solution I found is to refresh the RichEdit. And, don't forget that the RichEdit is an standard MS Windows 95 control, not a delphi write control, so the gilt of that behavior is Windows not Delphi... better to found the better solution is to find a working fix I guess. And, the same bad behavior occurs when you insert lines under certain circunstances, so my algoritm to fix it refresh on Resizes, and work with a timer reseting it every line inserted, finally when the timer is called i refresh the rich edit. For me works fine.
0
 

Author Comment

by:wy2lam
ID: 1360823
Thanks extreme,...currently it is what I'm doing with my RichEdit decendent.  Now I believe there isn't a solution without muggling with comctrl32.dll...so, do you think you need the points?  I can give it to you =)  By the way, can you tell me what is the use of expert points?  I've accumulated several 100's of them but have no idea how to use them.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Accepted Solution

by:
extreme earned 80 total points
ID: 1360824
Well, I post this answer if you want to give me the points..:) I really don't know exactly what other uses you can give to the points, but in my case I like this system as a kind of curriculum for some work. This is a simply way to probe your expertise in some area.
0
 

Author Comment

by:wy2lam
ID: 1360825
Here's the points =)  and thanks a lot.
0
 
LVL 1

Expert Comment

by:extreme
ID: 1360826
You are welcome...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

16 Experts available now in Live!

Get 1:1 Help Now