Hi, I noticed that very wide ListCtrl in LC_REPORT mode have a problem
with headers: they stop working after a certain column.
Try this:
import wx
app=wx.App(redirect=None)
f=wx.Frame(None)
l=wx.ListCtrl(f,style=wx.LC_REPORT)
for i in xrange(500):
l.InsertColumn(i,"This is column number %i" % i)
f.Show()
app.MainLoop()
At column 409 the headers are not displayed any more. Also the
scrolling does not work fine.
It seems there's an issue with painting rather than list itself.
This happens on MSW, wxPython 2.8.9.2, python 2.5.4 or 2.6.
Can you confirm this? Is it a limitation or maybe a bug?
Thanks
My guess is that it is a limitation of the native widget on Windows. There my be some short int overflow of the virtual size of the window, or something like that, so it is exceeding the range that the scrollbar and/or the window size can support.
···
On 6/12/10 4:51 AM, Marco wrote:
Hi, I noticed that very wide ListCtrl in LC_REPORT mode have a problem
with headers: they stop working after a certain column.
Try this:
import wx
app=wx.App(redirect=None)
f=wx.Frame(None)
l=wx.ListCtrl(f,style=wx.LC_REPORT)
for i in xrange(500):
l.InsertColumn(i,"This is column number %i" % i)
f.Show()
app.MainLoop()
At column 409 the headers are not displayed any more. Also the
scrolling does not work fine.
It seems there's an issue with painting rather than list itself.
This happens on MSW, wxPython 2.8.9.2, python 2.5.4 or 2.6.
Can you confirm this? Is it a limitation or maybe a bug?
On 15 Giu, 04:19, Robin Dunn <ro...@alldunn.com> wrote:
On 6/12/10 4:51 AM, Marco wrote:
> Hi, I noticed that very wide ListCtrl in LC_REPORT mode have a problem
> with headers: they stop working after a certain column.
> Try this:
> import wx
> app=wx.App(redirect=None)
> f=wx.Frame(None)
> l=wx.ListCtrl(f,style=wx.LC_REPORT)
> for i in xrange(500):
> l.InsertColumn(i,"This is column number %i" % i)
> f.Show()
> app.MainLoop()
> At column 409 the headers are not displayed any more. Also the
> scrolling does not work fine.
> It seems there's an issue with painting rather than list itself.
> This happens on MSW, wxPython 2.8.9.2, python 2.5.4 or 2.6.
> Can you confirm this? Is it a limitation or maybe a bug?
My guess is that it is a limitation of the native widget on Windows.
There my be some short int overflow of the virtual size of the window,
or something like that, so it is exceeding the range that the scrollbar
and/or the window size can support.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org