develooper Front page | perl.wxperl.users | Postings from August 2008

Re: Control for showing a (static) image?

Thread Previous
From:
Mattia Barbon
Date:
August 2, 2008 01:26
Subject:
Re: Control for showing a (static) image?
Message ID:
4892D3E5.9070803@libero.it
Roode, Eric wrote:

   Hi,

>     I wish to display a logo image as part of my window, amongst all the
> other controls.  After much searching through the documentation (note
> that this is not covered in the "bitmap overview" section - perhaps it
> should be?), I came across the wxStaticBitmap control.  This looks like
> what I need.
> 
>     However, the class doco states, "A static bitmap control displays a
> bitmap. It is meant for display of the small icons in the dialog boxes
> and is not meant to be a general purpose image display control. In
> particular, under Windows 9x the size of bitmap is limited to 64*64
> pixels and thus you should use your own control if you want to display
> larger images portably."
> 
>     What does "your own control" mean?  How can I display an image
> larger than 64x64 as an ordinary control?

   Just subclass wxWindow and draw the bitmap in the EVT_PAINT handler.

Regards,
Mattia


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About