Cursor and Font in table setting...
Posted: Wed Nov 01, 2006 11:16 pm
Hello,
i have ask two:
1.
I insert a new table in my RichViewEdit with following code:
This works fine, but the cursor in my RichViewEdit is after the table.
How do I get the cursor into the first cell of the table (Table.Cells[0,0]...)?
2.
With the following code, I reading the current FontInfo and set these for the new table:
This works fine until another table is inserted, with another current FontInfo (example:first table fontsize = 10; second table fontsize = 7).
Both tables abruptly have fontsize = 7 after it.
I hope that you understood my questions?
My English is not so good.
Greetings
Crowbar
i have ask two:
1.
I insert a new table in my RichViewEdit with following code:
Code: Select all
...
RichViewEdit.InsertItem('',Table);
...
How do I get the cursor into the first cell of the table (Table.Cells[0,0]...)?
2.
With the following code, I reading the current FontInfo and set these for the new table:
Code: Select all
...
TabFontInfo:=RVStyle.TextStyles[RichViewEdit.CurTextStyleNo];
RichViewEdit.ApplyTextStyle(RichViewEdit.CurTextStyleNo);
RVStyle.TextStyles[0].FontName:=TabFontInfo.FontName;
RVStyle.TextStyles[0].Size:=TabFontInfo.Size;
RichViewEdit.InsertItem('',Table);
...
Both tables abruptly have fontsize = 7 after it.
I hope that you understood my questions?
My English is not so good.
Greetings
Crowbar