<?xml version="1.0" encoding="windows-1252"?>
<node id="1015820" title="Tk configure in Tkx" created="2013-01-29 02:47:02" updated="2013-01-29 02:47:02">
<type id="115">
perlquestion</type>
<author id="1015814">
Marinochka</author>
<data>
<field name="doctext">
&lt;p&gt;
Hi! I'm newcomer in Perl. I'm trying to make a programm using Tkx. But there is a promlem: I made a table using "tktable", but I can't use some configure options like "-selectbackground" (It says unknown option). Can maybe someone advise me how to use such options or how can I solve this problem an other way (I need to change default color of foreground or background when cell is selected)? 
&lt;/p&gt;
&lt;code&gt;
use strict;
use Tkx;
Tkx::package_require("Tktable");

my $mw = Tkx::widget-&gt;new('.');
$mw-&gt;g_wm_title("Name of the window");
my $frame = $mw-&gt;new_frame();
$frame-&gt;configure(
	-borderwidth =&gt; 4,
	-relief =&gt; 'groove',
);
$frame-&gt;g_pack();
my $guess_tab = $frame-&gt;new_table(
	-rows =&gt; 7,
	-cols =&gt; 4,
	-cache =&gt; 1,
	-resizeborders =&gt; 'none',
	-titlecols =&gt; 1,
	-titlerows =&gt; 1,
	-variable =&gt; \%guess,
);
$guess_tab-&gt;g_pack();
Tkx::MainLoop();
&lt;/code&gt;</field>
</data>
</node>
