jon bird
unread,Jan 4, 2021, 6:33:11 AM1/4/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wx-u...@googlegroups.com
Hi all,
Hopefully a quick one this. I have a series of wxComboBoxes, wrapped in
sizers that allow them to expand as the top level window is resized.
With no strings loaded in them, the behaviour is exactly what I'm
after, they all expand a sensible amount to fill the available space.
However once the boxes have been populated because some of the
strings are quite long, when the window is resized, the width of the
combo boxes are now excessively. Presumably because it's now trying to
allow it to fit the width of the longest string in the box.
It feels like I need to override something like DoGetBestSize or
similar to somehow tell it to disregard the lengths of the strings in
the combo box however it's not clear to me from the docs how to go
about this.
Rgs,
Jon.
--
--
== jon bird - software engineer
== <reply to address _may_ be invalid, real mail below>
== <reduce rsi, stop using the shift key>
== posted as: news 'at' onasticksoftware 'dot' co 'dot' uk