in reply to Re: Re: Re: PerlTk; text justification in an hlist
in thread PerlTk; text justification in an hlist

Thaks for your help. The following worked for me: Note this is only the relevant part of the code.
use Tk::ItemStyle; # use itemstyle # define the simple styles my $rj = $hlist->ItemStyle("text", -justify => 'right'); my $cj = $hlist->ItemStyle("text", -justify => 'center'); # when calling itemCreate use a style $hlist->itemCreate($job, $option++, -text => $cpu{$job}, -itemtype => +'text', -style => $rj);