wx.ComboBox

Hiya all,

I would like to have something like a wx.ComboBox. But what I want is that the box should have a fix size. I see that when in the vertical direction I set the size, that when the number of items become larger that I automatically get a scrollebar. But when I set the size in the horizontal direction, I see that when my item size (number of characters) become relatively large, that I can not read the item anymore. Nor do I get a scrollbar in order that I can still completely read the item. When I don’t set the size, the combo box becomes larger and large. I don’t want such a behavior. Am I using the correct object to achieve what I want. If not, can anyone please give me an advise on what to use. If I have to use something else, I want to remark that I want to dynamically change the choices list and have them sorted automatically. With a combo box this I can achieve. The only thins is that I can not get a scroll bar in
the horizontal direction and that when I select an item I can not read it completely when using the cursors of the keyboard in the box.

Thanks in advance for all your help.

RR

Robert Robert wrote:

Hiya all,
I would like to have something like a wx.ComboBox. But what I want is that the box should have a fix size. I see that when in the vertical direction I set the size, that when the number of items become larger that I automatically get a scrollebar. But when I set the size in the horizontal direction, I see that when my item size (number of characters) become relatively large, that I can not read the item anymore. Nor do I get a scrollbar in order that I can still completely read the item. When I don't set the size, the combo box becomes larger and large. I don't want such a behavior. Am I using the correct object to achieve what I want. If not, can anyone please give me an advise on what to use. If I have to use something else, I want to remark that I want to dynamically change the choices list and have them sorted automatically. With a combo box this I can achieve. The only thins is that I can not get a scroll bar in the horizontal direction and that when I select an item I can not read it completely when using the cursors of the keyboard in the box.
Thanks in advance for all your help.
RR

I'm not sure I completely understand, but if you need a horizontal scrollbar, than you should check out the ComboCtrl, not the ComboBox widget.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org