Hi,
I see something surprising in the behavior of the StatusBar. The
script below is a simple demostration of the issue.
On linux or Windows 7, the entire 130 character message is displayed
as expected in the StatusBar. (I guess I am assuming that your
default font is of a size that the text string in the script will fit
in the 700 pixel width of the Frame.)
On Windows XP, the message is truncated at the 127th character.
I don't see anything in the documentation that suggests this limit
should exist. Nor do I see a way to work around it.
Any suggestions? Or will my Windows XP users just have to live with
this limitation?
Thanks, as always!
Bruce
#!/usr/bin/perl
package MyApp;
use base 'Wx::App';
use Wx qw(:everything);
sub OnInit {
my $frame = Wx::Frame -> new(undef, -1, 'demo', [-1,-1], [700,150]);
$frame->{statusbar} = $frame->CreateStatusBar;
$frame -> SetSizer($sizer);
my $message =
'.........1.........2.........3.........4.........5.........6.........7.........8.........9.........0.........1.........2......7893';
$frame->{statusbar} -> PushStatusText($message);
$frame -> Show(1);
1;
};
package main;
use Wx qw(:everything);
my $app = MyApp->new->MainLoop;
--
Bruce Ravel ------------------------------------ [email protected]
National Institute of Standards and Technology
Synchrotron Methods Group at NSLS --- Beamlines U7A, X24A, X23A2
Building 535A
Upton NY, 11973
My homepage: http://xafs.org/BruceRavel
EXAFS software: http://cars9.uchicago.edu/ifeffit/Demeter