source: extensions/pLoader/trunk/src/Uploader/GUI/wxImagePreview.pm @ 3361

Last change on this file since 3361 was 3361, checked in by ronosman, 15 years ago

Feature 1012. Fix missing file for rev 3357.

  • Property svn:eol-style set to LF
File size: 788 bytes
Line 
1package Uploader::GUI::wxImagePreview;
2use strict;
3use Wx qw/
4             wxID_ANY
5             wxDefaultPosition
6             wxDefaultSize
7             wxVERTICAL
8             wxALIGN_CENTER
9             wxALL
10             wxNullBitmap
11             
12         /;
13use base qw/Wx::Panel/;
14
15sub new {
16  my ( $class, $parentwnd, $bitmap, $width, $height ) = @_;
17
18  my $self = $class->SUPER::new( $parentwnd,  wxDefaultPosition, [$width, $height] );
19
20   
21#  $self->{bitmap} = Wx::StaticBitmap->new( $self, -1, wxNullBitmap, wxDefaultPosition, [$width, $height] );
22  $self->{bitmap} = Wx::StaticBitmap->new( $self, -1, wxNullBitmap, wxDefaultPosition, wxDefaultSize );
23   
24  $self;       
25}
26
27sub SetBitmap {
28    my ( $self, $bitmap ) = @_;
29   
30    $self->{bitmap}->SetBitmap($bitmap);       
31}
32
331;
Note: See TracBrowser for help on using the repository browser.