Events for Adding and Deleting Column in Table

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 33
Joined: Wed Dec 09, 2020 9:36 am

Events for Adding and Deleting Column in Table

Post by tomr »

Hello RichView Support,
I have a question regarding table modifications:
Is there a specific event that is triggered when columns are added to or deleted from a table?

Adding or deleting an entire table works fine — I'm currently using the ItemAction event and checking for StyleNo = -60 (which corresponds to a table) along with ItemAction = rviaInserted (for adding) or rviaMovingToUndoList (for deletion).
Add and Deleting Table.png
Add and Deleting Table.png (33.02 KiB) Viewed 6162 times
However, when modifying a table (e.g., adding or removing columns), I see that multiple events are triggered with StyleNo = 0, which corresponds to plain text. But no events with the StyleNo = -60
Am I missing something, or is there a better way to detect column-level changes in tables?

Kind regards
Tom
Post Reply