Solved

richedit resize bug

Posted on 1997-03-24
2
385 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Suggested Solutions

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…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 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