Page 1 of 1
RVE.InsertControl - Glitches with insert TStringGrid
Posted: Tue Aug 18, 2009 9:25 am
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.
Posted: Tue Aug 18, 2009 9:41 am
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.