<?xml version="1.0" encoding="windows-1252"?>
<node id="1006938" title="Formatting text-Create table -perl Tk" created="2012-12-03 15:03:42" updated="2012-12-03 15:03:42">
<type id="115">
perlquestion</type>
<author id="999051">
reaper9187</author>
<data>
<field name="doctext">
Hi everyone ,&lt;br/&gt;&lt;br/&gt;

I urgently require some suggestions regarding formatting of text in perl tk's text widget. Can we create a table within the tk widget to display data ..???? I know this may sound silly but my actual problem is displaying text in the widget in a very organized manner.&lt;br/&gt;
My problem can be broadly viewed as :
&lt;br/&gt;
1. Display text in a table format ( multiple rows, 4 columns ). I use the command  &lt;code&gt; $txt-&gt;insert('end', "ABC\t\tBCN\t\tNN\t\tARCFN\n");
&lt;/code&gt;
However, the major limitation for this format is the string size. As soon as the string length for for any of the first three strings exceeds a certain length, the tab spacing is increased making the entry look weird. Is there a better way to do this ??? Thanks ..

&lt;br/&gt;&lt;br/&gt;
I want to have something like  :
&lt;br/&gt;&lt;br/&gt;
ABC       &amp;nbsp           NACA         &amp;nbsp     AFASFA&amp;nbsp         AAA&lt;br/&gt;
ABC        &amp;nbsp           NACA  &amp;nbsp            AFASFA   &amp;nbsp       AAA&lt;br/&gt;

&lt;br/&gt;
&lt;br/&gt;
As soon as the string size increases, the pattern looks something like this  
&lt;br/&gt;
&lt;br/&gt;
ABC          &amp;nbsp        NACA       &amp;nbsp        AFASFA      &amp;nbsp    AAA&lt;br/&gt;
ABCASDA          &amp;nbsp &amp;nbsp         NACA      &amp;nbsp &amp;nbsp        AFASFA     &amp;nbsp &amp;nbsp    AAA&lt;br/&gt;
AS  &amp;nbsp            NACA         &amp;nbsp   AFASFA      &amp;nbsp       AAA&lt;br/&gt;

&lt;br/&gt;
&lt;br/&gt;
Please help ,...1!!            </field>
</data>
</node>
