Create Action Event To Split Table

General TRichView support forum. Please post your questions here
Post Reply
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I cannot reproduce this problem.
I created a new action, placed this code in OnUpdate; it works fine.

However,
1) There is already TrvActionTableSplit available
2) If you want to create a table-related actions, you should use GetCurrentItemEx to determine if the current item is a table (your code works correctly if the caret is to the left/right side of the table, or if several table cells are selected; however, if the caret is inside a table cell, the CurItemStyle returns the style of the item inside this table)
Post Reply