On 10/11/17 07:55, Oshri Shomrony wrote:
Hello,

I'm using perl 5.24 with win32::GUI.

I would like to open a window and display on it multiple lines taken from an array. I would also like it to be scrollable in case the window is smaller than the text size.

for some reason, using "\n" doesn't work in AddLabel at all - the text after the \n is not displayed.

How can I display multiple lines in a window?

hi,

what you want is a Textfield (not Label) object, with -multiline => 1. and note, newline is "\r\n".

documentation is here: http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi?doc=textfield

hope this helps.

cheers,
Aldo



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to