I recently converted a GUI from Tcl/TK to wxPython, and
just noticed that a significant piece of functionality was
lost in the transition: the wxComboBoxes don't have a
horizontal scrollbar for the showing the choices if any
of them are too big to fit in the fixed size of the control.
Is there a way I can either get this back or get
"tooltip-like" functionality displaying the entire
contents on mouseover of the choice? (Either would do...)
(I'm working with MSW, and I don't really care about
cross-platform compatibility for this application, if that
makes any difference.)
I recently converted a GUI from Tcl/TK to wxPython, and
just noticed that a significant piece of functionality was
lost in the transition: the wxComboBoxes don't have a horizontal scrollbar for the showing the choices if any of them are too big to fit in the fixed size of the control.
Is there a way I can either get this back or get "tooltip-like" functionality displaying the entire
contents on mouseover of the choice? (Either would do...)
(I'm working with MSW, and I don't really care about
cross-platform compatibility for this application, if that
makes any difference.)
You could get the window handle of the combobox and use the win32api module to send CB_SETHORIZONTALEXTENT to the native control to set the width of the largest item. It should then automatically use the horizontal scrollbar if needed. Something like this (untested):