Solved

TRichEdit behavior (moderate)

Posted on 1998-03-24
6
143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

763 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