From: John W. <jo...@jo...> - 2010-09-25 05:29:05
|
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 |