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

Benoît Minisini gambas at ...1...
Thu Dec 24 16:29:26 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.
> 

That bug has been fixed in revision #2515.

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list