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).
<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.
Hmm. My button text appears to get centered without any -align option.
Perhaps you only need that, to get it to be non-centered?
Blair
--
Glenn -- http://nevcal.com/
===========================
The best part about procrastination is that you are never bored,
because you have all kinds of things that you should be doing.