Re: [perl-win32-gui-hackers] Win32::GUI::Button align problem

2004-10-07 Thread Glenn Linderman
On approximately 10/7/2004 3:15 PM, came the following characters from the keyboard of Glenn Linderman: On approximately 10/7/2004 2:23 PM, came the following characters from the keyboard of Laurent ROCHER: Hi Blair, Fix and commit on CVS. Problem come from BS_CENTER style is BS_

Re: [perl-win32-gui-hackers] Win32::GUI::Button align problem

2004-10-07 Thread Glenn Linderman
On approximately 10/7/2004 2:23 PM, came the following characters from the keyboard of Laurent ROCHER: Hi Blair, Fix and commit on CVS. Problem come from BS_CENTER style is BS_LEFT | BS_RIGHT so SwitchBit order it's important. I rewrite like this : if(strcmp(option, "-align"

Re: [perl-win32-gui-hackers] Win32::GUI::Button align problem

2004-10-07 Thread Glenn Linderman
On approximately 10/7/2004 12:57 PM, came the following characters from the keyboard of Blair Sutton: I've noticed that the button attribute "align" breaks if you specify "center", if empty it works (i.e. default). use Win32::GUI; my $W = new GUI::Window(-height=>100,-width=>100); my $B = $W->

Re: [perl-win32-gui-hackers] Win32::GUI::Button align problem

2004-10-07 Thread Laurent ROCHER
Hi Blair, Fix and commit on CVS. Problem come from BS_CENTER style is BS_LEFT | BS_RIGHT so SwitchBit order it's important. I rewrite like this : if(strcmp(option, "-align") == 0) { // BS_CENTER is BS_LEFT | BS_RIGHT if(strcmp(SvPV_nolen(value), "left") == 0) {

[perl-win32-gui-hackers] Win32::GUI::Button align problem

2004-10-07 Thread Blair Sutton
I've noticed that the button attribute "align" breaks if you specify "center", if empty it works (i.e. default). use Win32::GUI; my $W = new GUI::Window(-height=>100,-width=>100); my $B = $W->AddButton(-text=>'Test', -width=>'100', -align=>'center'); $W->Center(); $W->Show(); Win32::GUI::Dialog