Putting together my 1st wx application and could do with some advice,
The left hand side of the frame will need to have images in it,
looking at StaticBitmap am concerned as its docs state "A static
bitmap control displays a bitmap. It is meant for display of the small
icons" so images using half the screen might be an issue, any ideas ?
No, however if your picture has a greater geometry than the screen
your frame will be part invisible.
If this is the case, it's better to load and crop|reduce before
displaying.
···
On Sun, 18 Dec 2011 09:22:53 +0000 dave selby <dave6502@gmail.com> wrote:
The left hand side of the frame will need to have images in it,
looking at StaticBitmap am concerned as its docs state "A static
bitmap control displays a bitmap. It is meant for display of the small
icons" so images using half the screen might be an issue, any ideas ?
--
Puritanism:
the haunting fear that someone, somewhere, may be happy.
-- H. L. Mencken, "A Book of Burlesques"
It depends on how big is big, and what you plan to do with it. These days StaticBitmap can probably handle typical large images without a problem, but it still might not be the best widget for the job. A common alternative would be to handle the paint event of the widget that would have been the parent of the static bitmap (perhaps a "left side" panel) and then draw the image yourself (or a portion of it) in that event handler.
···
On 12/18/11 1:22 AM, dave selby wrote:
Hi All,
Putting together my 1st wx application and could do with some advice,
The left hand side of the frame will need to have images in it,
looking at StaticBitmap am concerned as its docs state "A static
bitmap control displays a bitmap. It is meant for display of the small
icons" so images using half the screen might be an issue, any ideas ?
Thanks for your advice guys, I will give it a go and let you know
Cheers
Dave
···
On 19 December 2011 17:35, Robin Dunn <robin@alldunn.com> wrote:
On 12/18/11 1:22 AM, dave selby wrote:
Hi All,
Putting together my 1st wx application and could do with some advice,
The left hand side of the frame will need to have images in it,
looking at StaticBitmap am concerned as its docs state "A static
bitmap control displays a bitmap. It is meant for display of the small
icons" so images using half the screen might be an issue, any ideas ?
It depends on how big is big, and what you plan to do with it. These days
StaticBitmap can probably handle typical large images without a problem, but
it still might not be the best widget for the job. A common alternative
would be to handle the paint event of the widget that would have been the
parent of the static bitmap (perhaps a "left side" panel) and then draw the
image yourself (or a portion of it) in that event handler.