[wxPython-users] Font size of listctrl column headers on OS X
Jamie Bullock
jamie at postlude.co.uk
Fri Aug 3 00:28:40 PDT 2007
On Thu, 2007-08-02 at 13:01 -0700, Robin Dunn wrote:
> Jamie Bullock wrote:
> > On Tue, 2007-07-31 at 12:13 -0700, Robin Dunn wrote:
> >> Jamie Bullock wrote:
> >>> Hi,
> >>>
> >>> If I instantiate a listctrl (LC_REPORT) widget on GNU/Linux, set the
> >>> column names, populate some rows, and then change the font size, both
> >>> the column headers and the rows expand vertically to accommodate the
> >>> size of the font. On OS X, the rows expand vertically, but the column
> >>> _headers_ stay fixed whilst the font expands, meaning that the font is
> >>> 'cropped' inside the header cells.
> >> The OS X column headers can only be drawn at the standard height, so the
> >> listctrl doesn't allow them to be a non-standard height on OS X. If you
> >> set the system option to use the native listctrl on OSX then it is smart
> >> enough to leave the font of the headers alone and only change the font
> >> for the body.
> >>
> >
> > Thanks. That kind of works, but what I get now is the rows expanding
> > vertically (to accommodate the font size), the header staying the same,
> > but the font (text) itself staying the same size.
> >
> > Any more ideas?
>
> Like I said, the OS X header control can't be drawn at any other height.
Yes, but what i'm saying is, the font size of the _body_ doesn't change
when the mac.listctrl.always_use_generic is set to 0.
There are two cases:
i) mac.listctrl.always_use_generic = 1: The font can be resized in the
header and the body, but the header cells don't expand to accommodate
the font. (I understand that this is because the header control can't be
drawn at a different height).
ii) mac.listctrl.always_use_generic = 1: The body cells expand
vertically, but the actual font size in the body cells stays constant.
(AFAICT, this is a bug. Surely the text should expand inside the body
cells and stay the same size in the header cells?)
Jamie
--
www.postlude.co.uk
More information about the wxpython-users
mailing list