Has anyone implemented a popup version of a Checklistbox yet? It sounds so likely that I just assumed it already existed, but then it’s nowhere in the demo or anything. In fact I even assumed that a wx.Checklistbox would actually be a popup checklistbox and was surprised that it’s static.
If there’s no existing recipe, I’ll have to build my own. Any suggestions? Studying the docs and demos, I see several ways to go. One is wx.Choice + wx.CheckListCtrlMixin. But CheckListCtrlMixin is apparently only meant to modify a wx.ListCtrl, not a wx.Choice. Anyone know if it would work out anyway? What if I tried this not with a wx.Choice but with a wx.ComboBox?
Another way to go is to subclass ComboCtrl, either also inheriting from Checklistbox or just using a child Checklistbox. But i’m having trouble understanding the programming style that ComboCtrl wants you to use.
Or I could skip the popup ability and just use a SpinButton next to a CheckBox, allowing the SpinButton to rotate through a set of checkboxes with only one visible at a time. At least this would save space, which is the primary purpose for which I was seeking a popup Checklistbox.
Any observations? Thanks.