Re: disabled buttons still receive events, they just process them, later?

2024-02-22 Thread Curry Kenworthy via use-livecode



Jacqueline:

> Exactly 37 years. I remember because I started learning HC when
> my son was born in order to take my mind off diapers.

I like that! Every HC story is poetic, mine too.

Mike:

> it's amazing that even after...a really long time...
> there's still stuff to learn.

Plus the latest workarounds! :)

Then ... (spoiler alert) Apple and competitors want inside your head.

Best wishes,

Curry Kenworthy

Radically Innovative Christian LiveCode Development
"PASSION for Elegant, Efficient Code!"
http://livecodeconsulting.com/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-22 Thread Jeff Reynolds via use-livecode
Oh man yes Jacque and Mike! I do feel old, about the same for me, about late 
87… grad school at Berkeley, humpback whales, and carrying Macs in big 
backpacks. Later MetaCard saved the day! 

Fun memories,

Jeff

> On Feb 22, 2024, at 1:51 AM, use-livecode-requ...@lists.runrev.com wrote:
> 
> Exactly 37 years. I remember because I started learning HC when my son was
> born in order to take my mind off diapers. If I remember, we can commiserate .
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread J. Landman Gay via use-livecode
Exactly 37 years. I remember because I started learning HC when my son was 
born in order to take my mind off diapers. If I remember, we can commiserate .

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 21, 2024 8:14:19 PM Mike Kerner via use-livecode 
 wrote:



pfft
there is zero chance of that
it's been, what 37 years?
man, i'm so old.

On Wed, Feb 21, 2024 at 8:35 PM Stephen Barncard via use-livecode <
use-livecode@lists.runrev.com> wrote:


"there's still stuff to
learn."

. and remember .
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Wed, Feb 21, 2024 at 5:24 PM Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> thanks, jacque & mark
> it's amazing that even after...a really long time...there's still stuff
to
> learn.
>
> On Wed, Feb 21, 2024 at 5:16 PM Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It’s because of the wait - ‘blocking’ waits (those which aren’t ‘with
> > messages’) queue any (low level) events so they are handled at the next
> > wait (in this case the global one the engine does implicitly when there
> are
> > no handlers executing).
> >
> > Flushing events after the wait as Jacque suggests will ensure they
aren’t
> > there to handle.
> >
> > Warmest Regards.
> >
> > Mark.
> >
> > Sent from my iPhone
> >
> > > On 21 Feb 2024, at 21:59, Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > i did.
> > > i have both a button, and a power button.
> > > script:
> > >
> > > *local* count
> > >
> > > *on* mouseUp
> > >
> > > *if* the disabled of me *then* *put* cr & "disabled" after msg
> > >
> > > *add* 1 to count
> > >
> > > *set* the enabled of me to false
> > >
> > > *put* count
> > >
> > > *wait* 2 second
> > >
> > > *set* the enabled of me to true
> > >
> > > *end* mouseUp
> > >
> > >> On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >> Mike.
> > >>
> > >> In a new stack I placed a button with this:
> > >>
> > >> on mouseUp
> > >>  beep 2
> > >> end mouseUp
> > >>
> > >> If I click on the button I hear two clicks. I disabled the button
and
> > >> clicked on it. I enabled the button. No clicks. I did this all by
> hand.
> > Did
> > >> you?
> > >>
> > >> Craig
> > >>
> > >>> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>>
> > >>> alright, i'm a little surprised to notice this:
> > >>> i have a button. i disabled the button.
> > >>> then i clicked on the button
> > >>> then i re-enabled the button
> > >>> the click, from the period while the button was disabled, is
received
> > and
> > >>> processed by the button.
> > >>> that seems problematic, to me. how would one cause clicks to be
> > >> discarded,
> > >>> permanently? hide the button? overlay it with a transparent control
> > that
> > >>> will absorb and ignore the clicks?
> > >>>
> > >>> --
> > >>> On the first day, God created the heavens and the Earth
> > >>> On the second day, God created the oceans.
> > >>> On the third day, God put the animals on hold for a few hours,
> > >>>  and did a little diving.
> > >>> And God said, "This is good."
> > >>> ___
> > >>> use-livecode mailing list
> > >>> use-livecode@lists.runrev.com
> > >>> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >>
> > >> ___
> > >> use-livecode mailing list
> > >> use-livecode@lists.runrev.com
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > >   and did a little diving.
> > > And God said, "This is good."
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> 

Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Mike Kerner via use-livecode
pfft
there is zero chance of that
it's been, what 37 years?
man, i'm so old.

On Wed, Feb 21, 2024 at 8:35 PM Stephen Barncard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> "there's still stuff to
> learn."
>
> . and remember .
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
>
>
> On Wed, Feb 21, 2024 at 5:24 PM Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > thanks, jacque & mark
> > it's amazing that even after...a really long time...there's still stuff
> to
> > learn.
> >
> > On Wed, Feb 21, 2024 at 5:16 PM Mark Waddingham via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> >
> > > It’s because of the wait - ‘blocking’ waits (those which aren’t ‘with
> > > messages’) queue any (low level) events so they are handled at the next
> > > wait (in this case the global one the engine does implicitly when there
> > are
> > > no handlers executing).
> > >
> > > Flushing events after the wait as Jacque suggests will ensure they
> aren’t
> > > there to handle.
> > >
> > > Warmest Regards.
> > >
> > > Mark.
> > >
> > > Sent from my iPhone
> > >
> > > > On 21 Feb 2024, at 21:59, Mike Kerner via use-livecode <
> > > use-livecode@lists.runrev.com> wrote:
> > > >
> > > > i did.
> > > > i have both a button, and a power button.
> > > > script:
> > > >
> > > > *local* count
> > > >
> > > > *on* mouseUp
> > > >
> > > > *if* the disabled of me *then* *put* cr & "disabled" after msg
> > > >
> > > > *add* 1 to count
> > > >
> > > > *set* the enabled of me to false
> > > >
> > > > *put* count
> > > >
> > > > *wait* 2 second
> > > >
> > > > *set* the enabled of me to true
> > > >
> > > > *end* mouseUp
> > > >
> > > >> On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
> > > >> use-livecode@lists.runrev.com> wrote:
> > > >>
> > > >> Mike.
> > > >>
> > > >> In a new stack I placed a button with this:
> > > >>
> > > >> on mouseUp
> > > >>  beep 2
> > > >> end mouseUp
> > > >>
> > > >> If I click on the button I hear two clicks. I disabled the button
> and
> > > >> clicked on it. I enabled the button. No clicks. I did this all by
> > hand.
> > > Did
> > > >> you?
> > > >>
> > > >> Craig
> > > >>
> > > >>> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
> > > >> use-livecode@lists.runrev.com> wrote:
> > > >>>
> > > >>> alright, i'm a little surprised to notice this:
> > > >>> i have a button. i disabled the button.
> > > >>> then i clicked on the button
> > > >>> then i re-enabled the button
> > > >>> the click, from the period while the button was disabled, is
> received
> > > and
> > > >>> processed by the button.
> > > >>> that seems problematic, to me. how would one cause clicks to be
> > > >> discarded,
> > > >>> permanently? hide the button? overlay it with a transparent control
> > > that
> > > >>> will absorb and ignore the clicks?
> > > >>>
> > > >>> --
> > > >>> On the first day, God created the heavens and the Earth
> > > >>> On the second day, God created the oceans.
> > > >>> On the third day, God put the animals on hold for a few hours,
> > > >>>  and did a little diving.
> > > >>> And God said, "This is good."
> > > >>> ___
> > > >>> use-livecode mailing list
> > > >>> use-livecode@lists.runrev.com
> > > >>> Please visit this url to subscribe, unsubscribe and manage your
> > > >> subscription preferences:
> > > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >>
> > > >>
> > > >> ___
> > > >> use-livecode mailing list
> > > >> use-livecode@lists.runrev.com
> > > >> Please visit this url to subscribe, unsubscribe and manage your
> > > >> subscription preferences:
> > > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >>
> > > >
> > > >
> > > > --
> > > > On the first day, God created the heavens and the Earth
> > > > On the second day, God created the oceans.
> > > > On the third day, God put the animals on hold for a few hours,
> > > >   and did a little diving.
> > > > And God said, "This is good."
> > > > ___
> > > > use-livecode mailing list
> > > > use-livecode@lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >and did a little diving.
> > And God said, "This is good."
> > ___
> > 

Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Stephen Barncard via use-livecode
"there's still stuff to
learn."

. and remember .
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Wed, Feb 21, 2024 at 5:24 PM Mike Kerner via use-livecode <
use-livecode@lists.runrev.com> wrote:

> thanks, jacque & mark
> it's amazing that even after...a really long time...there's still stuff to
> learn.
>
> On Wed, Feb 21, 2024 at 5:16 PM Mark Waddingham via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > It’s because of the wait - ‘blocking’ waits (those which aren’t ‘with
> > messages’) queue any (low level) events so they are handled at the next
> > wait (in this case the global one the engine does implicitly when there
> are
> > no handlers executing).
> >
> > Flushing events after the wait as Jacque suggests will ensure they aren’t
> > there to handle.
> >
> > Warmest Regards.
> >
> > Mark.
> >
> > Sent from my iPhone
> >
> > > On 21 Feb 2024, at 21:59, Mike Kerner via use-livecode <
> > use-livecode@lists.runrev.com> wrote:
> > >
> > > i did.
> > > i have both a button, and a power button.
> > > script:
> > >
> > > *local* count
> > >
> > > *on* mouseUp
> > >
> > > *if* the disabled of me *then* *put* cr & "disabled" after msg
> > >
> > > *add* 1 to count
> > >
> > > *set* the enabled of me to false
> > >
> > > *put* count
> > >
> > > *wait* 2 second
> > >
> > > *set* the enabled of me to true
> > >
> > > *end* mouseUp
> > >
> > >> On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>
> > >> Mike.
> > >>
> > >> In a new stack I placed a button with this:
> > >>
> > >> on mouseUp
> > >>  beep 2
> > >> end mouseUp
> > >>
> > >> If I click on the button I hear two clicks. I disabled the button and
> > >> clicked on it. I enabled the button. No clicks. I did this all by
> hand.
> > Did
> > >> you?
> > >>
> > >> Craig
> > >>
> > >>> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
> > >> use-livecode@lists.runrev.com> wrote:
> > >>>
> > >>> alright, i'm a little surprised to notice this:
> > >>> i have a button. i disabled the button.
> > >>> then i clicked on the button
> > >>> then i re-enabled the button
> > >>> the click, from the period while the button was disabled, is received
> > and
> > >>> processed by the button.
> > >>> that seems problematic, to me. how would one cause clicks to be
> > >> discarded,
> > >>> permanently? hide the button? overlay it with a transparent control
> > that
> > >>> will absorb and ignore the clicks?
> > >>>
> > >>> --
> > >>> On the first day, God created the heavens and the Earth
> > >>> On the second day, God created the oceans.
> > >>> On the third day, God put the animals on hold for a few hours,
> > >>>  and did a little diving.
> > >>> And God said, "This is good."
> > >>> ___
> > >>> use-livecode mailing list
> > >>> use-livecode@lists.runrev.com
> > >>> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >>
> > >> ___
> > >> use-livecode mailing list
> > >> use-livecode@lists.runrev.com
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > >> subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >>
> > >
> > >
> > > --
> > > On the first day, God created the heavens and the Earth
> > > On the second day, God created the oceans.
> > > On the third day, God put the animals on hold for a few hours,
> > >   and did a little diving.
> > > And God said, "This is good."
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
> --
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Mike Kerner via use-livecode
thanks, jacque & mark
it's amazing that even after...a really long time...there's still stuff to
learn.

On Wed, Feb 21, 2024 at 5:16 PM Mark Waddingham via use-livecode <
use-livecode@lists.runrev.com> wrote:

> It’s because of the wait - ‘blocking’ waits (those which aren’t ‘with
> messages’) queue any (low level) events so they are handled at the next
> wait (in this case the global one the engine does implicitly when there are
> no handlers executing).
>
> Flushing events after the wait as Jacque suggests will ensure they aren’t
> there to handle.
>
> Warmest Regards.
>
> Mark.
>
> Sent from my iPhone
>
> > On 21 Feb 2024, at 21:59, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > i did.
> > i have both a button, and a power button.
> > script:
> >
> > *local* count
> >
> > *on* mouseUp
> >
> > *if* the disabled of me *then* *put* cr & "disabled" after msg
> >
> > *add* 1 to count
> >
> > *set* the enabled of me to false
> >
> > *put* count
> >
> > *wait* 2 second
> >
> > *set* the enabled of me to true
> >
> > *end* mouseUp
> >
> >> On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>
> >> Mike.
> >>
> >> In a new stack I placed a button with this:
> >>
> >> on mouseUp
> >>  beep 2
> >> end mouseUp
> >>
> >> If I click on the button I hear two clicks. I disabled the button and
> >> clicked on it. I enabled the button. No clicks. I did this all by hand.
> Did
> >> you?
> >>
> >> Craig
> >>
> >>> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
> >> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> alright, i'm a little surprised to notice this:
> >>> i have a button. i disabled the button.
> >>> then i clicked on the button
> >>> then i re-enabled the button
> >>> the click, from the period while the button was disabled, is received
> and
> >>> processed by the button.
> >>> that seems problematic, to me. how would one cause clicks to be
> >> discarded,
> >>> permanently? hide the button? overlay it with a transparent control
> that
> >>> will absorb and ignore the clicks?
> >>>
> >>> --
> >>> On the first day, God created the heavens and the Earth
> >>> On the second day, God created the oceans.
> >>> On the third day, God put the animals on hold for a few hours,
> >>>  and did a little diving.
> >>> And God said, "This is good."
> >>> ___
> >>> use-livecode mailing list
> >>> use-livecode@lists.runrev.com
> >>> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >>> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Mark Waddingham via use-livecode
It’s because of the wait - ‘blocking’ waits (those which aren’t ‘with 
messages’) queue any (low level) events so they are handled at the next wait 
(in this case the global one the engine does implicitly when there are no 
handlers executing).

Flushing events after the wait as Jacque suggests will ensure they aren’t there 
to handle.

Warmest Regards.

Mark.

Sent from my iPhone

> On 21 Feb 2024, at 21:59, Mike Kerner via use-livecode 
>  wrote:
> 
> i did.
> i have both a button, and a power button.
> script:
> 
> *local* count
> 
> *on* mouseUp
> 
> *if* the disabled of me *then* *put* cr & "disabled" after msg
> 
> *add* 1 to count
> 
> *set* the enabled of me to false
> 
> *put* count
> 
> *wait* 2 second
> 
> *set* the enabled of me to true
> 
> *end* mouseUp
> 
>> On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Mike.
>> 
>> In a new stack I placed a button with this:
>> 
>> on mouseUp
>>  beep 2
>> end mouseUp
>> 
>> If I click on the button I hear two clicks. I disabled the button and
>> clicked on it. I enabled the button. No clicks. I did this all by hand. Did
>> you?
>> 
>> Craig
>> 
>>> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> alright, i'm a little surprised to notice this:
>>> i have a button. i disabled the button.
>>> then i clicked on the button
>>> then i re-enabled the button
>>> the click, from the period while the button was disabled, is received and
>>> processed by the button.
>>> that seems problematic, to me. how would one cause clicks to be
>> discarded,
>>> permanently? hide the button? overlay it with a transparent control that
>>> will absorb and ignore the clicks?
>>> 
>>> --
>>> On the first day, God created the heavens and the Earth
>>> On the second day, God created the oceans.
>>> On the third day, God put the animals on hold for a few hours,
>>>  and did a little diving.
>>> And God said, "This is good."
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread J. Landman Gay via use-livecode
That seems a little odd, I haven't noticed that. But one way to block the 
messages is to use flushEvents() in the button script:


flushEvents("mouseDown")
flushEvents("mouseUp")

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On February 21, 2024 3:09:44 PM Mike Kerner via use-livecode 
 wrote:



alright, i'm a little surprised to notice this:
i have a button. i disabled the button.
then i clicked on the button
then i re-enabled the button
the click, from the period while the button was disabled, is received and
processed by the button.
that seems problematic, to me. how would one cause clicks to be discarded,
permanently? hide the button? overlay it with a transparent control that
will absorb and ignore the clicks?

--
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
  and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Mike Kerner via use-livecode
i did.
i have both a button, and a power button.
script:

*local* count

*on* mouseUp

*if* the disabled of me *then* *put* cr & "disabled" after msg

*add* 1 to count

*set* the enabled of me to false

*put* count

*wait* 2 second

*set* the enabled of me to true

*end* mouseUp

On Wed, Feb 21, 2024 at 4:47 PM Craig Newman via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Mike.
>
> In a new stack I placed a button with this:
>
> on mouseUp
>   beep 2
> end mouseUp
>
> If I click on the button I hear two clicks. I disabled the button and
> clicked on it. I enabled the button. No clicks. I did this all by hand. Did
> you?
>
> Craig
>
> > On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > alright, i'm a little surprised to notice this:
> > i have a button. i disabled the button.
> > then i clicked on the button
> > then i re-enabled the button
> > the click, from the period while the button was disabled, is received and
> > processed by the button.
> > that seems problematic, to me. how would one cause clicks to be
> discarded,
> > permanently? hide the button? overlay it with a transparent control that
> > will absorb and ignore the clicks?
> >
> > --
> > On the first day, God created the heavens and the Earth
> > On the second day, God created the oceans.
> > On the third day, God put the animals on hold for a few hours,
> >   and did a little diving.
> > And God said, "This is good."
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Craig Newman via use-livecode
Mike.

In a new stack I placed a button with this:

on mouseUp
  beep 2
end mouseUp

If I click on the button I hear two clicks. I disabled the button and clicked 
on it. I enabled the button. No clicks. I did this all by hand. Did you?

Craig

> On Feb 21, 2024, at 4:07 PM, Mike Kerner via use-livecode 
>  wrote:
> 
> alright, i'm a little surprised to notice this:
> i have a button. i disabled the button.
> then i clicked on the button
> then i re-enabled the button
> the click, from the period while the button was disabled, is received and
> processed by the button.
> that seems problematic, to me. how would one cause clicks to be discarded,
> permanently? hide the button? overlay it with a transparent control that
> will absorb and ignore the clicks?
> 
> -- 
> On the first day, God created the heavens and the Earth
> On the second day, God created the oceans.
> On the third day, God put the animals on hold for a few hours,
>   and did a little diving.
> And God said, "This is good."
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


disabled buttons still receive events, they just process them, later?

2024-02-21 Thread Mike Kerner via use-livecode
alright, i'm a little surprised to notice this:
i have a button. i disabled the button.
then i clicked on the button
then i re-enabled the button
the click, from the period while the button was disabled, is received and
processed by the button.
that seems problematic, to me. how would one cause clicks to be discarded,
permanently? hide the button? overlay it with a transparent control that
will absorb and ignore the clicks?

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode