Hi William,
You would have to place the caret inside the table then do
insert_data() commands.
Each table structure is one position in the document. So if you placed
the caret immediately outside the table at position "pos" you would
have to add +3 pos to move it over
<table><cell><paragraph>
So that you could do your insert_data command.
Note that each <Table> and <cell> structure has a corresponding <end_table> and
<end_cell> structure. However there is no <end_paragraph> structure.
So a 2 cell by 1 row table would look like:
<table><cell><para>some text in paragraph<para>more text in
paragraph<end_cell><cell><para>yet more text<para>even more
text<para>still more text<end_cell><end_table>
Looking at the *.abw file should help if you remember that the </p>
markers aren't actually in the document structure.
Cheers
Martin
On Tue, Apr 26, 2011 at 9:58 PM, William J Giddings
<wjgiddings@blueyonder.co.uk> wrote:
>
> I recently created a set of Tcl bindings to the Abiwidget which are
> fine. I've successfully wrapped the various functions of the API into a
> series of object commands and options but I'm not certain how to allow
> the insertion of table entries under script control. Is there something
> not listed in the API that would allow me to add such a command? To
> illustrate the point, from a TCL point of I would like to implement the
> following:
>
> set aw [gnocl:;abiwidget]
> set tab(1) [$aw1 insert table -rows 5 -cols 3]
>
> set row 1
> set col 1
>
> $tab(1) set $row $col "HELLO"
>
> incr col
>
> $tab(1) set $row $col "WORLD"
>
> Will
>
>
>
>
>
>
Received on Wed Apr 27 01:06:32 2011
This archive was generated by hypermail 2.1.8 : Wed Apr 27 2011 - 01:06:32 CEST