[Gambas-devel] BUG: ComboBox.ReadOnly (gb.qt)

nospam.nospam.nospam at ...176... nospam.nospam.nospam at ...176...
Wed Dec 9 07:44:44 CET 2009


Benoît Minisini wrote:
>> 2009/12/9 Benoît Minisini <gambas at ...1...>:
>>>> 2009/12/9 Benoît Minisini <gambas at ...1...>:
>>>>>> 2009/12/9 Fabien Bodard <gambas.fr at ...176...>:
>>>>>>> _click ?
>>>>>>
>>>>>> And if the user is using the keyboard? Or if the user clicks but
>>>>>> changes nothing? Or if I need to detect and react to the current
>>>>>> item being changed from within code?
>>>>>
>>>>> Click does not mean that the mouse is used. It just means that the
>>>>> current item has changed. It's funny it disturbs you, as this is
>>>>> the same thing in VB.
>>>>
>>>> The disturbance has nothing to do with VB at all, Benoit. It has
>>>> to do with trying to make sense out of something that does not
>>>> make sense. Like I implied above, the click event does not fire if
>>>> the current item of the ComboBox is changed in code. There is no
>>>> way to detect a change to a ReadOnly ComboBox if the change came
>>>> from within the code.
>>>
>>> The Change event is only for editable combo-box, because it is an
>>> event coming from TextBox. What you need is the Click event.
>>
>> Ok, I can accept that, however what about the problem of the click
>> event not firing if the current
>> item of the ComboBox is changed in code?
>>
>
> It should be a bug. Do you have a little project that shows me that?

lol - all ready to go. Attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cboTest.tar.gz
Type: application/x-gzip
Size: 8556 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20091209/cc04cb44/attachment.bin>


More information about the Devel mailing list