I create a WPRichText layout programatically based on other WPRIchText data. I indent most of the data from the other WPRichText controls when merging it into the master WPRichText, and therefore I have to adjust the tabstops by the indent amount. Currently I do this:
Code
for i := 0 to TABMAX-1 do
begin
if memoMerge.Header.TabPosTW[i] > 0 then
Inc( memoMerge.Header.TabPosTW[i], oleft );
end;
memoMerge.Header.ReCalculateTabs;
I could be wrong, but it appears to be also changing the tabstops in areas I don't want them adjusted, like in the header/footer.
Do I have to go through each paragragh and clear/assign new tabstops? If so, could someone post a sample?
Thanks,
Eric