Takamoto has asked for the wisdom of the Perl Monks concerning the following question:

Given this code

use Tk; use Tk::TableMatrix::Spreadsheet; my $t = $top->Scrolled('Spreadsheet', -rows => 21, -cols => 11, -width => 6, -height => 6, -titlerows => 1, -titlecols => 1, -variable => $arrayVar, -selectmode => 'extended', -bg => 'white', );

Is it possible to modify the default color of the highlighted (active) cells in a Tk-TableMatrix table without rewriting the whole logic with tags?

Replies are listed 'Best First'.
Re: Tk TableMatrix highlighted cell color
by Takamoto (Monk) on Jul 07, 2024 at 22:28 UTC

    I found the 'sel' solution:

    $t->tagConfigure('sel', -bg => 'yellow', -foreground =>'white', -relie +f => 'flat');