I've noticed that the button attribute "align" breaks if you specify "center", if empty it works (i.e. default).

<pre>
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;
</pre>

If one replaces "center" with "right" it works as expected. The error is not apparent in Button.xs and I've happens on XPsp2 and W2Ksp4.

Blair

Reply via email to