List Info

Thread: XRCed and ListCtrl - manually added columns doesn't appear




XRCed and ListCtrl - manually added columns doesn't appear
country flaguser name
Norway
2007-10-23 17:21:51
Hello,

I've got a ListCtrl defined in an XRC, and I retrieve the
object from the XML 
and append columns manually:

self.listCtrl = xrc.XRCCTRL(self.panel, 'listctrl')
self.listCtrl.InsertColumn(0, 'Col 1')
self.listCtrl.InsertColumn(1, 'Col 2')
self.listCtrl.InsertColumn(1, 'Col 3')

But these columns never appears in the GUI. I can append
strings to column one 
though, but the column name doesnt appear on top of the
listctrl.

Is there something I've misunderstood, or shouldn't this
simply "just work"?

Thanks,
Frank

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


Re: XRCed and ListCtrl - manually added columns doesn't appear
country flaguser name
Norway
2007-10-23 17:27:54
On Wednesday 24 October 2007 00:21:51 Frank Aune wrote:
> Is there something I've misunderstood, or shouldn't
this simply "just
> work"?

Perhaps adding wx.LC_REPORT to the attribute list helps. Doh


-Frank

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )