[Gambas-user] Setting a checkbox value

nospam.nospam.nospam at ...626... nospam.nospam.nospam at ...626...
Sun Nov 22 08:22:53 CET 2009


Doriano Blengino wrote:
> bbb888 ha scritto:
>> Benoit,
>>
>> Why oh why should setting checkbox value in code generate a click
>> event?
>>
>> bruce
>>
> I join.
> I think that events should be fired by user, never by code.

You'd be saying exactly the opposite if gambas was badly designed and didn't 
generate the event on a coded change when you needed it to. You would have 
no way in hell of easily detecting it, not ever. Besides that, firing events 
for code-set attributes is normal practice in a GUI. All you need do is set 
a flag and test it in the event code. 





More information about the User mailing list