Hi,
I noticed a strange behavior in floatcanvas; I have attached the
files. For some reasons, when I pan or zoom such that my upper-left corner
isn't in the viewport anymore, the whole bitmap disappear. I have swapped
the large map (3 Mb) for a smaller graphic for the sample code. This
disappearance happens only if the ScaledBitmap is positioned as 'tl' and
this tl is both to the left and above the top-left corner of the viewport.
Similarly, if the image is positioned as 'br' and the bottom-right corner of
the bitmap is lower and to the right of the viewport, the whole bitmap
disappear. I didn't get any odd behavior with 'cl' and 'cc'.
My quick fix is to use 'cc' as the position of the bitmap, forcing
me to do a bit more calculation to find the center of the bitmap in world
coordinates (no big deal). But this is just a workaround.
Cheers,
Christian
wxTest3.zip (16.9 KB)