Button does not receive mouseUP after disabling then enabling button

Randy Hengst iowahengst at mac.com
Sat Aug 15 16:58:12 EDT 2015


Will it work for now if you disable target at the beginning of your startMyProcess script and enable it at the end of that script?

be well,
randy

Randy Hengst
www.classroomFocusedSoftware.com


> On Aug 15, 2015, at 3:44 PM, Martin Koob <mkoob at rogers.com> wrote:
> 
> Hi Randy
> 
> I put the send "set state on" to me in 3 seconds in order to replicate what
> was happening in my application in a simple stack to see if the issue would
> happen with simple commands in one button and it did.
> 
> What actually happens in the application is that a command is sent then a
> callback is received.  Before the process command is called I set the state
> to off.  Once the callback is received I can set the state back to on.
> 
> 
> on mouseUp
>   setState "off"
>   startMyProcess
> end mouseUp
> 
> on MyProcessCompletedCallback
>   setState "on"
> end MyProcessCompletedCallback
> 
> on setState pState
>   lock screen
>   if pState is "on" then
>      enable me
>      set the name of me to "on"
>   else
>      disable me
>      set the name of me to "off"
>   end if
>   unlock screen
> end setState
> 
> I am trying wait with messages at various points in my application script
> but it does not resolve it in this case.
> 
> Martin
> 
> 
> 
> 
> 
> --
> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Button-does-not-receive-mouseUP-after-disabling-then-enabling-button-tp4695119p4695133.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list