Fix checkbox buttons

Maxime Bellengé maxime.bellenge at laposte.net
Sun Apr 27 08:01:05 CDT 2003


In the notification section of the preference dialog box of emule you
can see a checkbox button whose the text is not aligned with the
checkbox. It comes from the fact that the checkbox must be aligned with
the text and not the size of the component provided in the resources. So
I moved the drawing of the checkbox after the computation of the size of
the text.

Moreover, the code now handles correctly the BS_TOP/BS_BOTTOM flags.
Actually, the checkbox must be aligned according to these flags what was
not correctly implemented.

This code is based on tests preformed on win xp. Now there should be no
alignment problems.

( As you may have seen emule is my actual favorite test app because the
people from emule are kind enough to provide the sources, it's easy to
debug :) )

a+

Max

ChangeLog:
  * Fix some indentation problems
  * Hanlde correctly the alignement of the checkboxes if the
BS_TOP/BS_BOTTOM flags are set

-- 
Maxime Bellengé <maxime.bellenge at laposte.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: button.patch
Type: text/x-patch
Size: 4230 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20030427/84fcb0db/button.bin


More information about the wine-patches mailing list