Table Inside a Table
Posted: Wed Sep 28, 2005 2:27 pm
The code below works fine if the table in question is located directly on the Editor. If the it is located in a table cell, that's a problem..
if ChartEditor.GetCurrentItemEx(TRVTableItemInfo, RVE, Item) then
begin
Table := TRVTableItemInfo(item);
ItemNo := Table.GetMyItemNo;
ChartEditor.TopLevelEditor.SetSelectionBounds(ItemNo, ChartEditor.TopLevelEditor.GetOffsBeforeItem(ItemNo), ItemNo, ChartEditor.TopLevelEditor.GetOffsBeforeItem(ItemNo)); <-- error on this line
end;
Any help is appreciated
if ChartEditor.GetCurrentItemEx(TRVTableItemInfo, RVE, Item) then
begin
Table := TRVTableItemInfo(item);
ItemNo := Table.GetMyItemNo;
ChartEditor.TopLevelEditor.SetSelectionBounds(ItemNo, ChartEditor.TopLevelEditor.GetOffsBeforeItem(ItemNo), ItemNo, ChartEditor.TopLevelEditor.GetOffsBeforeItem(ItemNo)); <-- error on this line
end;
Any help is appreciated