Button label centering with GTK+2

Vadim Zeitlin vadim at wxwidgets.org
Mon May 19 04:36:40 PDT 2008


On Mon, 19 May 2008 03:45:22 -0700 (PDT) raananb <raanan at barzel.org> wrote:

r> Bold button label is rendered inadequately under GTK+2 (Ubuntu 8.04).
r> 
r> In the picture Buttons.jpg both buttons have the same size and use the same
r> font, the only difference is that the second is in bold. The label in bold
r> is displayed off-center.
r> 
r> Under Windows (Xp and Vista) both are centered correctly.
r> 
r> http://erbarzel.club.fr/Buttons.jpg

 We probably need to call gtk_button_set_alignment() after changing the
label, can you try if adding a call to it at the end of
wxButton::SetLabel() helps?

 Thanks,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/



More information about the wx-users mailing list