Page 1 of 1

Posted: Fri Dec 02, 2011 12:47 pm
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)