Can you display a bitmap with/inside of a sizer?
James Lynes <[email protected]> Sat, 2 May 2015 15:05:49 -0400
| Newsgroups | gmane.comp.lang.perl.wxperl |
|---|---|
| Message-ID | <CABPyseiLNZToBAhE3yKAmJP3SHE9p5vLbbk=ZLjMYy-eA=xSMA@mail.gmail.com> |
Good day!
I'm working on a little app to design common emitter amplifiers. I created
a circuit schematic with Eagle and exported it to a PNG file.
I am currently displaying the PNG at a fixed location of the screen with:
Wx::Event::EVT_PAINT($self, sub {
my ($self, $event) = @_;
My $dc = Wx::PaintDC->new($self);
my $bmp = Wx::Bitmap->new("CEAmpImg.png, wxBITMAP_TYPE_PNG);
$dc->DrawBitmap($bmp, 150, 50, 1);});
If would be nice if I could blend this in with the sizers that are
controlling the layout of the input and output TextCtrls.
Thanks for your ideas.
James