Win-11 64-bit:
wxPython-4.2.0-cp39-cp39-win_amd64.whl (installed via pip):
Python 3.9.10 stock:
*Description of the problem
Cannot control the height of the column headers in UltimateListCtrl:
In the example code, the text in each column is default size but has 2 newlines. This requires
increasing the column height to see the entire header but .SetHeaderHeight does nothing.
import wx
from wx.lib.agw import ultimatelistctrl as ULC
import wx.lib.agw as AGW
hdrCol0 = f'Spanish\n(Americas)\ntext'
hdrCol1 = f'Spanish\n(Americas)\naudio'
app = wx.App(redirect=True)
top = wx.Frame(None, title="Bad Header-Row Height", size=(500,400))
agwStyle = ( ULC.ULC_HAS_VARIABLE_ROW_HEIGHT | wx.LC_REPORT )
progress = ULC.UltimateListCtrl(top, agwStyle=agwStyle)
progress.InsertColumn(0, hdrCol0)
progress.InsertColumn(1, hdrCol1)
# The following line does NOT change the height of the
# column-header row regardless of its value, so I cannot
# make the headers completely visible
progress.SetHeaderHeight(200)
top.Show()
app.MainLoop()