[Mono-winforms-list] ButtonBase.AutoSize Implementation
latency at gmx.de
Mon Dec 18 14:39:39 EST 2006
On Sunday 17 December 2006 21:36, you wrote:
> Also, I believe you need to take Padding and TextImageRelation into
> account. It's one of those things that you think is very simple when
> you first look at it, and then keep finding more and more things you
> have to take into account. I think that covers everything that can
> affect the autosize. Now you can see why it wasn't done yet, it's more
> difficult than it looks. :)
Nice, the things you mentioned (Padding and TextImageRelation) are not
implemented at all (Neither in button base nor in the ThemeWin32). But at
least I got the padding working right now. TextImageRelation comes next since
it involves a lot of drawing-work to be done.
> Thanks very much for tackling this and your persistence.
No problem this is a good opportunity for me to learn how it is to write a GUI
and it is a much better "under-the-hood" experience than just looking at the
First thanks for your review and now just a short comment. I personally like
writing "this." in front of my members. In my opinion it makes source more
readable since you can easily distinguish between instance member and local
variables, but I guess that's my personal flavor and if it's not conform to
the Mono coding guideline I'll stop writing it.
More information about the Mono-winforms-list