Login  Register

Re: Unconvinient refresh in image presenter

Posted by Blair on Jul 20, 2006; 12:46pm
URL: https://forum.world.st/Unconvinient-refresh-in-image-presenter-tp3379298p3379578.html

"Chris Uppal" <[hidden email]> wrote in message
news:44a9120e$0$778$[hidden email]...
> Sebastián,
>
>>   It happens to me, using #viewMode: #scaleToFit, that when I maximize
>> and then restore the window, when the image is wider than taller, the
>> parts without image (those boxes on the window that are not a
>> proportional part of the box of the resized image) are maintaining the
>> parts of the previous maximized image.
>
> That seems to be a bug somewhere in D6.

Yes, in GdiplusImageView. The way that control backgrounds are erased was
changed and this was not reflected into GdiplusImageView. You can fix this
by copying down the View>>onEraseRequired: method, although it will now
ignore the isEraseBackground flag.

For the forthcoming release we have rationalised things so that ImageView
and GdiplusImageView sit under a common abstract superclass.

Regards

Blair