Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread Benoît Minisini
> Benoît Minisini ha scritto: > >>> 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. > >>> > >>> Regards, > >> > >

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread Doriano Blengino
Benoît Minisini ha scritto: >>> 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. >>> >>> Regards, >>> >>

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread Benoît Minisini
> nospam.nospam.nospam wrote: > > 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 att

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread Benoît Minisini
> > 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. > > > > Regards, > > Why should we make a difference between the user an

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread Doriano Blengino
nospam.nospam.nos...@gmail.com ha scritto: > Doriano Blengino wrote: > >> bbb888 ha scritto: >> >>> Benoit, >>> >>> Why oh why should setting checkbox value in code generate a click >>> event? >>> >>> >> I join. >> I think that events should be fired by user, never by code. >> >

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread nospam.nospam.nospam
bbb888 wrote: > nospam.nospam.nospam wrote: >> >> >> 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 >>

Re: [Gambas-user] Setting a checkbox value

2009-11-22 Thread bbb888
nospam.nospam.nospam wrote: > > > 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 attri

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread nospam.nospam.nospam
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 did

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread nospam.nospam.nospam
bbb888 wrote: > Benoit, > > Why oh why should setting checkbox value in code generate a click > event? Because setting a checkbox value in code is a pseudo-click. How would you feel if it didn't genrate a click but you wanted it to? Set a flag before setting the checkbox then check the flag in t

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread Fabien Bodard
but in this case it will work Object.lock(checkbox) Checkbox.value=true Object.Unlock(checkbox) so then the events are fired ... it is just blocked during the variable setting 2009/11/21 Doriano Blengino : > Fabien Bodard ha scritto: >> Le 21 novembre 2009 14:10, Benoît Minisini >> a écrit : >>

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread Doriano Blengino
Fabien Bodard ha scritto: > Le 21 novembre 2009 14:10, Benoît Minisini > a écrit : > >>> 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 fire

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread Fabien Bodard
Le 21 novembre 2009 14:10, Benoît Minisini a écrit : >> 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. >> >> Regards, >> > > Why should w

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread Benoît Minisini
> 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. > > Regards, > Why should we make a difference between the user and the code? Most of the ti

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread nando
@lists.sourceforge.net Sent: Sat, 21 Nov 2009 04:05:11 -0800 (PST) Subject: [Gambas-user] Setting a checkbox value > Benoit, > > Why oh why should setting checkbox value in code generate a click event? > > bruce > -- > View this message in context: http://old.nabble.com/Set

Re: [Gambas-user] Setting a checkbox value

2009-11-21 Thread Doriano Blengino
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. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mo

[Gambas-user] Setting a checkbox value

2009-11-21 Thread bbb888
Benoit, Why oh why should setting checkbox value in code generate a click event? bruce -- View this message in context: http://old.nabble.com/Setting-a-checkbox-value-tp26455936p26455936.html Sent from the gambas-user mailing list archive at Nabble.com. --