From: Will Duquette on
I'm puzzled by how Tktable uses tags. It's clear that a cell can have
more than one tag; but the "tag cell" subcommand explicitly replaces
any previous tag set using "tag cell". It's not at all explicit in
the man page, but I *think* the behavior is as follows. A cell may
have tags from the following sources:

1. From the "tag cell" subcommand.
2. From the -coltagcommand, by virtue of the column it's in.
3. From the -rowtagcommand, by virtue of the row it's in.
4. active, flash, sel, and title, as assigned dynamically by the
widget

Is this correct?
From: tomk on
On Jan 13, 10:52 am, Will Duquette <w...(a)wjduquette.com> wrote:
> I'm puzzled by how Tktable uses tags.  It's clear that a cell can have
> more than one tag; but the "tag cell" subcommand explicitly replaces
> any previous tag set using "tag cell".  It's not at all explicit in
> the man page, but I *think* the behavior is as follows.  A cell may
> have tags from the following sources:
>
> 1. From the "tag cell" subcommand.
> 2. From the -coltagcommand, by virtue of the column it's in.
> 3. From the -rowtagcommand, by virtue of the row it's in.
> 4. active, flash, sel, and title, as assigned dynamically by the
> widget
>
> Is this correct?

It's been several years since I worked with Tktable but what you say
sounds correct relative to my memory. I do recall at the time that the
tags didn't behave as I expected (from text widget).
tomk
From: Jeff Hobbs on
On Jan 13, 9:52 am, Will Duquette <w...(a)wjduquette.com> wrote:
> I'm puzzled by how Tktable uses tags.  It's clear that a cell can have
> more than one tag; but the "tag cell" subcommand explicitly replaces
> any previous tag set using "tag cell".  It's not at all explicit in
> the man page, but I *think* the behavior is as follows.  A cell may
> have tags from the following sources:
>
> 1. From the "tag cell" subcommand.
> 2. From the -coltagcommand, by virtue of the column it's in.
> 3. From the -rowtagcommand, by virtue of the row it's in.
> 4. active, flash, sel, and title, as assigned dynamically by the
> widget
>
> Is this correct?

That is correct. This was originally done years ago and I would have
to move to tktable 3.0 (breaking existing compat) to support a more
generalized tag system (long on the todo list).

Jeff