RVE.InsertControl - Glitches with insert TStringGrid
RVE.InsertControl - Glitches with insert TStringGrid
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.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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.