[Gambas-user] Combobox, How to get back to old Auto-list-width-behaviour ? Thanks, Awaiting next release ...
ub2 at gmx.ch
ub2 at gmx.ch
Fri May 27 13:17:33 CEST 2022
Thanks for your quick response, so I know I did not miss sth obvious.
I'll then patiently hope for next release.
In the meantime for "urgent user claims" I might do workarounds like;
Public Sub Cbo_ListAutoFitSize_Enter()
An then FrmCboListAkt acting like a Popup List:
- Showing Cbo_ListAutoFitSize.List in a tableview
- detecting user selected line
- then sending Column0 of this line back to Cbo_ListAutoFitSize.text
- and then Me.close
Am 27.05.22 um 11:58 schrieb gian via User:
> Il 27/05/22 10:14, ub2 at gmx.ch ha scritto:
>> Dear Gambas Cracks
>> I'm fiddling in vain since ... I'd like to ask for some hints.
>> The Situation (example):
>> I have a combobox.w = 75
>> - containing a list of entries some of them with length >>> 75
>> - the list is filled on runtime, Examples:
>> 1 skdjhlkdsf ndsklgjslkn ksrhgsk
>> 2 dsfkf sdfgs f hsdfhs sdf gsdf sd
>> 3 asdgfs dsfh sdhf sdhb
>> 4 ...
> I don't think anything can be done.
> The ComboBox control has changed recently and is now a Gambas component.
> I think it is an error in calculating the width of the popup window that
> does not take into account the width of the list.
> Benoit I think you should change W -= Style.FrameWidth * 2 to something
> like W = gvwPopup.Columns.Width + ...
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 495 bytes
Desc: OpenPGP digital signature
More information about the User