[Gambas-user] combobox no longer scrolls with the mousewheel

BB adamnt42 at gmail.com
Sun Oct 8 23:04:07 CEST 2023


On 9/10/23 6:11 am, T Lee Davidson wrote:
> On 10/8/23 13:17, Benoît Minisini wrote:
>> Le 08/10/2023 à 04:10, T Lee Davidson a écrit :
>>> On 10/7/23 18:24, Benoît Minisini wrote:
>>>> So I don't know what to do.
>>>
>>> If the MouseWheel event fired before both the Click and the Change 
>>> events, and if the MouseWheel event could be made stoppable, that 
>>> may be a solution.
>>>
>>> Another possible solution may be what Jussi suggested; making 
>>> disabling the MouseWheel on read-write ComboBoxes optional.
>>>
>>>
>>
>> OK, here is what I did:
>>
>> - Mouse wheel events are taken into account in all modes again.
>>
>> - But now these events can be catched and stopped in the ComboBox 
>> MouseWheel event handler, so that you can disable the default 
>> behaviour if you need.
>>
>> Regards,
>>
>
> That works great. If the MouseWheel event is stopped, neither the 
> Change event nor the Click event fires.
>
> This should work for those who wish to scroll through the ComboBox 
> list intentionally and for those who wish to prevent it from happening 
> unintentionally. Beautiful.
>
>
Yes, Thank you Benoît.


More information about the User mailing list