How to insert a checkpoint to a table row
Posted: Mon Jul 27, 2015 11:57 am
I use TSRichViewEdit to develop a basic report editor with data bands.
I use the checkpoints to mark user Begin/End of bands (for example "#[ALLPAGES" and "#[ENDOFALLPAGES]") and I have adapt the source code to show this bands as colored borders block/section.
My technic to draw this blocks is the same of the standard drawing procedure of Header/Footer titles (ie. DrawShadingAndTitles).
So, I've add a new procedure "DrawActiveCheckpoints" to TSRichViewEdit and new properties to TRVCPInfo ("Color" and "Active").
When the mouse is over an item checkpoint I set the TRVCPInfo.Active property of the checkpoint to TRUE and I force TSRichViewEdit to redraw.
It works fine when checkpoints are linked to the main document RVData (ie. TSRichViewEdit).
Now, I need to apply the same technic for tables and table rows.
So, I need some focus on :
1- Is it possible to define Rows checkpoints ?
2- When I have an ItemNo, How can I know if this item is a table item reference ?
3- How I can extract the Main document RVData of a table cell (ie. Parent table RVData)?
Tanks for any contributors.
I use the checkpoints to mark user Begin/End of bands (for example "#[ALLPAGES" and "#[ENDOFALLPAGES]") and I have adapt the source code to show this bands as colored borders block/section.
My technic to draw this blocks is the same of the standard drawing procedure of Header/Footer titles (ie. DrawShadingAndTitles).
So, I've add a new procedure "DrawActiveCheckpoints" to TSRichViewEdit and new properties to TRVCPInfo ("Color" and "Active").
When the mouse is over an item checkpoint I set the TRVCPInfo.Active property of the checkpoint to TRUE and I force TSRichViewEdit to redraw.
It works fine when checkpoints are linked to the main document RVData (ie. TSRichViewEdit).
Now, I need to apply the same technic for tables and table rows.
So, I need some focus on :
1- Is it possible to define Rows checkpoints ?
2- When I have an ItemNo, How can I know if this item is a table item reference ?
3- How I can extract the Main document RVData of a table cell (ie. Parent table RVData)?
Tanks for any contributors.