Robin
May 9, 2007, 12:17am
1
F.A. Pinkse wrote:
Hi All.
I have a lisrCtrl on a NoteBook page inside a sizer.
When I have inserted the items:
listCtrl.InsertStringItem(0,'item to display')
listCtrl.SetStringItem(0,1,'2nd Column Item')
I do a
listCtrl.SetColumnWidth(0,wx.LIST_AUTOSIZE)
but the size of the column does not change to the width of the item I did put in.
Please make a small sample app that shows the problem. MakingSampleApps - wxPyWiki
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin
May 9, 2007, 7:55pm
2
F.A. Pinkse wrote:
Hell Robin,
This is my sample of the problem.
I left out the notebook and sizer since they seem not to be the problem.
You might have to restore indentation.
I did a plain copy and paste.
Focus is on the last couple of lines in Frame1.
This is basically what I do in my app
I have tried different ordering,
but I never get the word 'second' in full in the first column.
Looks like it is one or two pixels off. Please enter a bug report about this. In the meantime you can workaround it by adding something like this:
self.listCtrl1.SetColumnWidth(0, self.listCtrl1.GetColumnWidth(0)+2)
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin
May 10, 2007, 10:40pm
3
F.A. Pinkse wrote:
Bug report:
Never done that, but there will be a first for everything.
What do you reckon 'who done it'? so I drop the bug on the right slate.
http://sourceforge.net/bugs/?group_id=9863
You need to have a Sourceforge login to be able to submit a bug. Give it a category of "wxMSW Specific"
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!