wx.ListCtrl and wx.ChoiceList

Hello NG,

is it possible to insert a wx.ChoiceList into a wx.ListCtrl ?
At the moment I am showing a ListCtrl where the user can type any value in every column but what I want is that the user can only select "close", "open", "in work" in a status column.

Ralf Schoenian

Ralf Schoenian wrote:

Hello NG,

is it possible to insert a wx.ChoiceList into a wx.ListCtrl ?
At the moment I am showing a ListCtrl where the user can type any value in every column but what I want is that the user can only select "close", "open", "in work" in a status column.

wx.ListCtrl doesn't automatically support embedding other controls within a "cell" in the list, but some folks have been fairly successful managing showing, sizing, and positioning one themselves. See wx.lib.mixins.listctrl.TextEditMixin for one example.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn schrieb:

Ralf Schoenian wrote:

Hello NG,

is it possible to insert a wx.ChoiceList into a wx.ListCtrl ?
At the moment I am showing a ListCtrl where the user can type any value in every column but what I want is that the user can only select "close", "open", "in work" in a status column.

wx.ListCtrl doesn't automatically support embedding other controls within a "cell" in the list, but some folks have been fairly successful managing showing, sizing, and positioning one themselves. See wx.lib.mixins.listctrl.TextEditMixin for one example.

Hello Robin,

such a solution is beyound my programming skills. I will do some experiments with the context menu. Would be nice to have the possibility to make changes with the ChoiceList but at the moment it is not a must.

Ralf Schoenian