On Fri, May 15, 2009 at 7:21 AM, lostgallifreyan
<lostgallifre...@gmail.com>wrote:
> Is there a control that works exactly like wxStaticBitmap() for large
> high-colour images when moved with Window:Move()?
>
No.
>
> I made a version of my script that uses a wxStaticBitmap() for the chart
> background which works well, but I'm told I should not use it for large
> images. I like it though, it doesn't need the OnPaint() redraw to keep it
> showing. That simplifies my code and also avoids flickering caused by a need
> to constantly redraw a background and an overlaid vector-drawn image at same
> time when moving the composite display window. It also allow methods to
> dramatically speed the vector draws because anything still showing in the
> client area will stay showing without flicker, and I can leave a full redraw
> till OnLeftUp, if it needs one.
>
Connect to the wxEVT_ERASE_BACKGROUND event and call event:Skip(false) to
block erasing the background if you use a wxEVT_PAINT handler.
>
> All that is made possible with the way wxStaticBitmap() works. So if I
> shouldn't use it and have to make my own control to emulate its useful
> behaviour but for images thousands of pixels wide, what should I do? The
> wxWidgets manual doen't have any suggestions for this.
>
If it works then that's fine. I just remember that at one point the
wxStaticBitmap had problems with large images, but this may be fixed now.
Regards,
John
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users