Solved

richedit resize bug

Posted on 1997-03-24
2
389 Views
Last Modified: 2013-11-22
I have a MDI application with MDIchild form that has two richedit controls. On my machine it works fine but the same program on another machine behaves strange. If i minimize the child and then maximize it again all text in the richedit controls are invisible. But I can still copy text. And if I manually resize the form the text gets visible.
So my question is - Is there a cure for this, or can I do something to catch this and make sure the problem does not show.
johan.lindgren@tt.se
0
Comment
Question by:jolla
[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
2 Comments
 
LVL 3

Expert Comment

by:sperling
ID: 1334938
Hmmm.... You could try RichEdit1.Invalidate when the form is restored... Might help.


Regards,

Erik.
0
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
ID: 1334939
When you resize the richedit, parent control have to send a EM_SETEDITRECT message to redefine the editing area. I recommend you to take a look at the RichEdit demo that comes with Delphi 2.

Hope this help
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

734 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