Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

TRichEditOle works until I for a while and then the OLE features stop working. What gives?

features gives OLE working
0
Posted

TRichEditOle works until I for a while and then the OLE features stop working. What gives?

0

The VCL is free to destroy and create controls whenever it needs to. Certain events, like changing the Scrollbars property for a TRichEdit control, cause this to happen. When this does happen, the connection between the TRichEdit control and TRichEditOleCallback class is lost the “new” Rich Edit no longer calls the TRichEditOleCallback functions that provide the OLE support. See the paper titled Window handles vs. TRichEdit (and other VCL) controls available on this site for more information.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123