Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to highlight selected text in Tktable

18 views
Skip to first unread message

Liau

unread,
Aug 2, 2004, 9:19:16 PM8/2/04
to
How can I make the text selected in the active cell highlighted, just
like the selected text in Tk entry widget?

thanks,
C.G. Liau

Jeff Hobbs

unread,
Aug 9, 2004, 1:13:03 AM8/9/04
to Liau
Liau wrote:

> How can I make the text selected in the active cell highlighted, just
> like the selected text in Tk entry widget?

Adjust the 'active' and/or 'sel' special tags of the table.

--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a division of Sophos

Liau

unread,
Aug 9, 2004, 10:02:12 PM8/9/04
to
Jeff Hobbs <je...@removethis.activestate.com> wrote in message news:<411707DF...@removethis.activestate.com>...

> Liau wrote:
>
> > How can I make the text selected in the active cell highlighted, just
> > like the selected text in Tk entry widget?
>
> Adjust the 'active' and/or 'sel' special tags of the table.

Using 'active' and/or 'sel' tag would highlight the entire text in a
cell. What I would like to highlight the selected text. For example, a
cell contains the text "Hello", I would like "He" to be in cyan if I
select the first 2 character. The entry widget has the
"selectbackground" option which does the trick. Is there an equivalent
in tktable?

Thanks,
C.G. Liau

Jeff Hobbs

unread,
Aug 10, 2004, 1:14:25 AM8/10/04
to Liau
Liau wrote:
> Jeff Hobbs wrote in message news:<411707DF...@removethis.activestate.com>...

tktable only has cell-level selection, not intra-cell level
selection.

0 new messages