I have a list of letters/acronyms for a user to choose from, but I want the popup list to additionally show the letter/acronym description (which is much longer). If I add the long strings to the Choice object, it displays very wide, I can change the size, but this affects the choice control and the popup list (I only want the control to be small).
For clarity I mocked this with an image:
http://imgur.com/TBBid82
I have some code I wrote for a ComboCtrl… so I will check that out now to see if I can get it working for what I want, since this outcome doesn’t seem obviously available otherwise.
Nathan McCorkle wrote:
I have a list of letters/acronyms for a user to choose from, but I
want the popup list to additionally show the letter/acronym
description (which is much longer). If I add the long strings to the
Choice object, it displays very wide, I can change the size, but this
affects the choice control and the popup list (I only want the control
to be small).
Yes, combo/list boxes increase in width to match the longest string. I
suppose you could consider having an edit box that brings up a context
menu when clicked.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
You could consider an Owner Drawn Combox, wx.combo.OwnerDrawnComboBox,
Personally I would say that you would be better off with a custom
control with a balloon tip on hover for each line in the combo control,
see the demo for a starting point.
···
On 09/02/2016 17:47, Tim Roberts wrote:
Nathan McCorkle wrote:
I have a list of letters/acronyms for a user to choose from, but I
want the popup list to additionally show the letter/acronym
description (which is much longer). If I add the long strings to the
Choice object, it displays very wide, I can change the size, but this
affects the choice control and the popup list (I only want the control
to be small).
Yes, combo/list boxes increase in width to match the longest string. I
suppose you could consider having an edit box that brings up a context
menu when clicked.
--
Steve (Gadget) Barnes
Any opinions in this message are my personal opinions and do not reflect
those of my employer.