Hey all.. I'm writing my first win32::gui app..  
I Guess I'd have to say that I like it so far 
because looking at the clock I realize that I've been
sitting here 
reading and coding for 6 hours with only 2 quick trips
to restroom. Wheww..
I've run into a problem though.. 
I want to put a label on my window after the user
opens up a file to edit.  
It's a long string of text, it's the full path to the
file.
The label displays, but if it's too long it just runs
until it gets cut off
by the right border of the main window.
I've been searching docs and email archives and can't
seem to find the solution.  
I don't know if it matters, but I add the label from
the sub that handles the opening 
of the file.
Here's the relevent code.
---------- start code -------
if (-e "$OPENED_FILE") {
 print "$OPENED_FILE \n";
 my $text = "Currently editing file: $OPENED_FILE . ";
 $current_file_label = $main->AddLabel( 
                      -name => "current_file_label",
                      -left => 10,
                      -top => 10,
                      -text => $text,
                      -font => 'Arial',
                      -foreground => 0x000000,
                      -wrap => 1
                        );

-------- end code --------

Any solutions or suggestions appreciated..

tia,
--ed



__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

Reply via email to