Nathan McCorkle
2014-09-02 19:21:21 UTC
I have been working on a widget like the Google Chrome URL search bar,
which not only lists items in a drop-down, but allows searching that list
and having the results displayed in real-time in the drop-down list.
Problems:
When I have word-wrap turned on for the text (long strings will wrap
instead of being cut-off), the scroll-bar changes size as I scroll down the
list. It seems like lines out-of-view are using a single line-height for
each item, but since the items can be multi-line, this is failing. I am not
storing the multi-line version, rather I'm recalculating on pop-up in case
the drop-down list changes width (i.e. frame was resized and drop-down got
wider).
Scrolling with the mouse-wheel doesn't work while the focus is in the
TextCtrl... I think this might be an easy fix.
Anyway, basically check the difference between the top drop-down (wordWrap
= False) and the lower drop-down (wordWrap=True)
which not only lists items in a drop-down, but allows searching that list
and having the results displayed in real-time in the drop-down list.
Problems:
When I have word-wrap turned on for the text (long strings will wrap
instead of being cut-off), the scroll-bar changes size as I scroll down the
list. It seems like lines out-of-view are using a single line-height for
each item, but since the items can be multi-line, this is failing. I am not
storing the multi-line version, rather I'm recalculating on pop-up in case
the drop-down list changes width (i.e. frame was resized and drop-down got
wider).
Scrolling with the mouse-wheel doesn't work while the focus is in the
TextCtrl... I think this might be an easy fix.
Anyway, basically check the difference between the top drop-down (wordWrap
= False) and the lower drop-down (wordWrap=True)
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.