[Mono-winforms-list] ButtonBase.AutoSize Implementation
latency
latency at gmx.de
Sun Dec 17 08:47:21 EST 2006
On Monday 11 December 2006 19:43, you wrote:
> Hello,
>
> > the first implementation of Button.AutoSize did not resize in cases where
> > the Font has been changed. I've corrected it but forgot to send the new
> > Version to the list.
> >
> > Therefore please review this patch instead of the initial one.
>
> A few days ago, someone on irc (perhaps jpobst?) mentioned that the
> problem with the code is that it did not take into account embedded
> images or other elements that might be added to it.
>
> Miguel.
Hello,
thanks for the hint I've corrected the patch. It resizes now if the image,
font or text has been changed. This should cover all cases, or am I missing
something?
While fixing the AutoSize I found out that buttons don't not display their
background image* and they flicker when the mouse enters and leaves quickly*.
Are these known issues or should I file a report?
* This is not a consequence of my patch. I happens under mono 1.2.2.1 as well.
Kind Regards,
Valentin S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ButtonBase.AutoSize.diff
Type: text/x-diff
Size: 2809 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20061217/53a95d8e/attachment.bin
More information about the Mono-winforms-list
mailing list