I have a small application which generates a single fixed-size window. It runs perfectly. I want to position the window at the bottom right-hand corner of the screen, so at the very end of the "new" method which instantiates my particular subclass of Frame I put
Code: Select all
my $WxSize = Wx::GetDisplaySize();
my $screen_width = $WxSize->GetWidth();
my $screen_height = $WxSize->GetHeight();
my ($my_width, $my_height ) = $self->GetSizeWH();
printf "Moving window to x=%d, y=%d\n", $screen_width-$my_width, $screen_height-$my_height;
$self->Move( $screen_width-$my_width, $screen_height-$my_height );
Of course, it's me that's wrong and not the code; but where? All assistance gratefully received.