Hello,
I am trying to use a larger font (20) for a wxListCtrl item
Problem is, The list content is displayed ok, and the toplabel is using the
desired fontsize, but the toplabel is shown with the same line height as with
the default font, so only the top part of the labeltext is visible
I get the same result if I try to run a test app or if I use wxDesigner and
change the fontsize
I searched around in the docs, but havent found anything.
Am I missing something obvious or is this a bug?
The only work-around I have found so far is to use style = wxLC_NO_HEADER
and then fake the label rows with sizers and buttons,
Any help would be apreciated! /Jacob Lundqvist
--------------- code snippet -------------
list = wxListCtrl( parent, id, pos = pos, size = size, style = style)
list.SetFont(txtAttr.GetFont()) # textAttr is defined elsewhere
------- What versions I use -----------
Distro: Mandrake 8.2
I am trying to use a larger font (20) for a wxListCtrl item
Problem is, The list content is displayed ok, and the
toplabel is using the desired fontsize, but the toplabel is
shown with the same line height as with the default font,
so only the top part of the labeltext is visible
Am I missing something obvious or is this a bug?
It's probably a bug, please enter a bug report about it.
A workaround that may work for you is to change the font of the parent
window before creating the listctrl. Most controls take the font of the
parent window as their default font so it may work for you.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!
torsdagen den 18 april 2002 17.15 skrev Robin Dunn:
> I am trying to use a larger font (20) for a wxListCtrl item
>
> Problem is, The list content is displayed ok, and the
> toplabel is using the desired fontsize, but the toplabel is
> shown with the same line height as with the default font,
> so only the top part of the labeltext is visible
>
> Am I missing something obvious or is this a bug?
It's probably a bug, please enter a bug report about it.
A workaround that may work for you is to change the font of the parent
window before creating the listctrl. Most controls take the font of the
parent window as their default font so it may work for you.
Unfortunately not, tried that, even multiple levels of parent fonts - no
change., even if I set the font on the main window
A workaround that may work for you is to change the font of the parent
window before creating the listctrl. Most controls take the font of the
parent window as their default font so it may work for you.
Unfortunately not, tried that, even multiple levels of parent fonts - no
change., even if I set the font on the main window
Okay, be sure to enter a bug report about it. It's probably something that
could be easily fixed by someone who knows the guts of the generic
wxListCtrl.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython!