[Gambas-user] Combobox change event question

Ron ron at ...1740...
Thu Jun 19 20:56:29 CEST 2008


Benoit Minisini schreef:
> On jeudi 19 juin 2008, Ron wrote:
>   
>> Benoit Minisini schreef:
>>     
>>> On jeudi 19 juin 2008, Ron wrote:
>>>       
>>>> Hi,
>>>>
>>>> the change event of a combobox is only triggered if a combobox is not
>>>> set to read-only.
>>>>
>>>> So it detects only the content change of the textbox which is part of
>>>> the combo box.
>>>>         
>>> Yes. The Change event comes from its interal TextBox. It means that the
>>> text inside the TextBox has changed.
>>>
>>>       
>>>> If you have a  box which is read-only you can only detect some activity
>>>> via the clicked event,
>>>>         
>>> Yes.
>>>
>>>       
>>>> but then you also get an event when they don't select another value of
>>>> course.
>>>>         
>>> I don't understand, what do you mean ?
>>>       
>> Well, if a user clicked the combobox but after looking at the list
>> decides to select the entry that was selected already before he clicked it,
>> you get a clicked event, but no change occured, thats why I thought the
>> changed event was for that, butit isn't as you pointed out.
>>
>> Well you can store and compare both string values afterwards, as a work
>> around.
>>
>> Ok thanks.
>>
>> Regards,
>> Ron.
>>
>>     
>
> Do you use gb.qt or gb.gtk ?
>
>   
Benoit,

gb.qt and gambas 2.7.0

Regards,
Ron.




More information about the User mailing list