Am 08.03.2010 14:59, schrieb Benoît Minisini:
>> Am 08.03.2010 00:13, schrieb Benoît Minisini:
>>> Hi,
>>>
>>> I released a small update to Gambas 2.20 that fixes the way the ComboBox
>>> raises its Click event (and so the project translation dialog).
>>>
>>> For more details, read the wiki documentation on the ComboBox Click
>>> event.
>>>
>>> Regards,
>>
>> Reading the documentation text, I come to the conclusion that you
>> returned to the old behaviour of ComboBox like in 2.19, i. e. no Click
>> event for the first item. Am I right?
>>
>> Regards
>>
>> Rolf
>>
>
> Not completely.
>
> The Click event is now raised:
>
> - If the user chooses an item in the list.
> - If the Index property is set.
> - If the Text property is set.
>
> NOTE #1: The Click event is raised when the Index or the Text property is set
> even if the new value is the same as the old one!
>
> NOTE #2: The Click event is *not* raised if you set Index to -1, or if you set
> the Text property with something that is not present in the list contents.
>
> NOTE #3: Apparently with gb.qt, the Click event is raised when the user
> selects the same item as the previously selected one. But not with gb.gtk! I'd
> like to force gb.gtk to behave the same, but didn't succeed.
>
> NOTE #4: The Click event is never raised when the list contents is modified,
> by Add(), Remove(), Clear(), or by setting the List property.
>
> So, now, you just initialize your ComboBox contents, and then either you
> initialize the related stuff by yourself, either everything is done in the
> Click event handler, and you have to set the Index property with the initial
> value just after.
>
> I hope everything is clear now! :-)
>

Well, yes, klar wie Kloßbrühe! :-)

And everything runs well now, no problems compiling, no problems during 
runtime so far. We will see tomorrow morning when more people start 
using the programs...

Thank you!

Rolf


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to