Link to home
Start Free TrialLog in
Avatar of wy2lam
wy2lamFlag for Canada

asked on

TRichEdit behavior (moderate)

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)
Avatar of wy2lam
wy2lam
Flag of Canada image

ASKER

Adjusted points to 80
Avatar of extreme
extreme

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.
Avatar of wy2lam

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of extreme
extreme

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wy2lam

ASKER

Here's the points =)  and thanks a lot.
You are welcome...