Page 1 of 1

"choose browse tool" Bug / Change?

Posted: Sat Apr 06, 2013 6:29 am
by MouseUp
In my old v4.6 stack, "choose browse tool" would choose the browse tool everytime I opened my stack- whether LiveCode was previously running or not.

In v5.02, "choose browse tool" seems to get executed ONLY when LiveCode is already open. If I don't have LiveCode running and try to open the stack, the edit tool remains selected. I have found no way around this. I tried putting "choose browse tool" into openCard and openStack and still no luck. Was something changed in that way "choose browse tool" is handled or is this a bug?

(The "Can't Modify" checkbox is unchecked for the stack)

Code: Select all

on preOpenStack
   choose browse tool
end preOpenStack

Re: "choose browse tool" Bug / Change?

Posted: Sat Apr 06, 2013 7:07 am
by Simon
In 5.x everything in the startup is much slower now. You know, all those things in the dictionary marked "Important! ...library must load..." You may find even breakpoints are ignored in preOpenAnything.
Best to move those scripts to "on openCard/Stack"

Simon

Re: "choose browse tool" Bug / Change?

Posted: Sat Apr 06, 2013 7:26 am
by wsamples
Try:

on openstack
send "browsetool" to me in 1 tick
end openstack

on browsetool
choose browse tool
end browse tool