You could try the "style" common option parameter.
I think one of them is line-height.

-pushstyle
-pushstyle => NUMBER 
Add the specified styles to the window's style mask. This option can be 
repeated multiple times, or values can be 'or'ed together.




-----Original Message-----
From: John Whitney [mailto:j...@johnwhitney.com] 
Sent: Saturday, 25 September 2010 4:04 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] Vertical line spacing and a Win98/WinXP issue

Question 1)

Anyone know how to get multiple lines in a Win32::GUI::Label to spread out 
vertially, so there would be an extra 5 pixels between each line?  Yes, I could 
create multiple labels, one for each line, and spread them out an extra 5 
pixels.  But a simple -linespacing => 5 would be nice.  Anything like this in 
the Win32::GUI world?  Below is the label I have.

my $window_main_text_label = new Win32::GUI::Label (
  $window_main ,
  -text       => "Line 1 \n Line 2 \n Line 3 \n Line 4 " ,
  -name       => 'window_settings_option_text_label' ,
  -font       => $font ,
  -pos        => [ 195 , 297 ] ,
  -size       => [ 280 , 100 ]
) ;


Question 2)

With Win32::GUI::RadioButton, and with Win32::GUI::CheckBox I can set and 
change the -foreground => 0x000000 value just fine to 0x000000 and 0xff0000 on 
my Win98SE PC.  But on my XP PC the $window_main_cb -> Change ( -foreground => 
0xff0000 ) and the initial setting of the -foreground =>
0xff0000 has no effect.  Just always black.  I can change -background colors on 
both Win98SE and WinXP platforms fine, but not -foreground.  Any thoughts?  My 
solution is to have the radio button or checkbox without any text, and add a 
text label near it that I can change the -foreground and -background, but this 
is a kludge I would like to avoid.

John Whitney
Utah, USA
john at johnwhitney period com


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances and start using them 
to simplify application deployment and accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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/

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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