By it's very nature, a listbox is made to choose items from one or more
'separate' lines. 
i.e. an item cannot span 2 lines...this would defeat the purpose of a
listbox. Hence the -justify command is not an option as might occur in a
label, text or entry widget.

I assume you want to have the listbox items piled against the 'right' side
of the listbox, because I can't figure out any other reason why you would
want to do this? 

Funny, you would figure a well-placed  -anchor=>'e'  would work, but it
doesn't?

The below is a sample script as to how a listbox handles long lines, and
hence why the -justify command doen't work.

### --perl-- #################
use strict;
use Tk;

my $test="This is a very long line to put in a listbox
So we throw in a couple of cr's to see
what happens when you insert this into a listbox";

my $top=MainWindow->new();
my $slb=$top->Scrolled('Listbox')->pack();
my $lb=$slb->Subwidget('listbox');
$lb->insert('end',$test);
MainLoop;
#############################

Regards,

Jack


-----Original Message-----
From: Troy Parry [mailto:[EMAIL PROTECTED]]
Sent: May 22, 2000 4:42 PM
To: Perl-Win32-Users Mailing List
Subject: Justifying text in a Listbox?


Does anyone know how to justify text in a listbox?
Which file do you hack, and where?

---
You are currently subscribed to perl-win32-users as:
[EMAIL PROTECTED]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to