How about inserting the mouseUp handler into the frontScript. That should run before the button script then. Make sure to pass mouseUp though! Here is what I did:
Create a button called btnFrontScript in the script of that button put on mouseUp focus on nothing pass mouseUp end mouseUp in the preOpencard (or preOpenstack) handler put insert the script of button "btnFrontScript" into front Budda bing, budda boom, Bob's yer Uncle. The closeField happens before the button script. Yes? Bob On Oct 26, 2011, at 9:32 AM, Pete wrote: > I guess that works but it means the button script will execute before the > focus on nothing in the card script which could be an issue, depending on > the application requirements. > Pete > Molly's Revenge <http://www.mollysrevenge.com> > > > > > On Wed, Oct 26, 2011 at 9:09 AM, Bob Sneidar <b...@twft.com> wrote: > >> >> >> As I said in another post, if you trap for mouseUp in the card or stack, >> set the focus to nothing, then pass mouseup, and remember to pass mouseUp in >> all your button handlers, everything will work the way you would expect it >> to. >> >> Bob >> >> > _______________________________________________ > 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