sure, that's a great idea. btw the solution here is relevant for C++ Builder and Delphi. It may not be direclty relevant for other languages that use the RichEdit control.
the first thing to realize is that it is a bug in the RichEdit control.
normally to set the text in a RichEdit control you could do this:
InfoText->Lines->Text=message;
instead i changed it to this:
InfoText->Lines->Text="";
InfoText->SelStart=0;
InfoText->SelText=message;
i also went into the properties for the RichEdit and changed MaxLength from 0 to 16000,
which should not be necesary but i figured i might as well.
the ideas to try these things came from google groups posts describing that RichEdit has some bugs that are triggered when you try to set text the normal way and that you should try setting it using SelText kludge. Seems to work!
Thanks for helping me find this lanux, it really is appreciated since this could be a really nasty surprise for anyone trying to enter a license key in one of our programs!