RVE.InsertControl - Glitches with insert TStringGrid

General TRichView support forum. Please post your questions here
Post Reply
chelovek
Posts: 3
Joined: Tue Aug 18, 2009 9:11 am

RVE.InsertControl - Glitches with insert TStringGrid

Post by chelovek »

I have problems with adding component TStringGrid in TsRichViewEdit. TStringGrid displayed with glitches in TsRichViewEdit. But in TRichViewEdit looks perfectly. But it is necessary for me that it was perfectly displayed in TsRichViewEdit. Help me to solve this problem.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

TSRichViewEdit and TRichViewEdit use different methods for displaying inserted controls.

TRichViewEdit contains controls in a way like any form contains them, only arranges them in text. So controls work as if they are placed on a form.

TSRichViewEdit cannot work in this way, because it displays scaled pages images. It draws controls on its canvas, and routes mouse and keyboard events to the proper control. Not all controls can work normally in this mode, what's why special controls versions (SRVControls) were created for the most commonly used controls. More common controls will be included in SRVControls soon, but not TStringGrid, sorry. I suggest using tables (TRVTableItemInfo) instead.
Post Reply