On 04/09/2012 11:18 PM, dunb...@aol.com wrote:
I have been doing this sort of thing for so many years, and still find the simplest things will not work. OK. Someone tell me why I cannot choose the browse tool under script control upon opening a stack in a new session. Wait. Maybe I should write an openstack or opencard handler that has "choose browse tool" in it. Wait. That does not work. And the funny thing is that I can place all kinds of other stuff, beeps, text loads, whatever, on both or either sides of that line, and though all the other stuff works fine, the tool will still start off as a pointer. I will finally deliver this stack with "cantModify" set to true, so the problem will go away, but what on earth do I not know in the meantime? Craig Newman
It sounds like you're launching Livecode by opening the stack. The problem is that the stack opens before the IDE is fully loaded and you are attempting to get the IDE to do something it's not ready for. Putting 'choose browse tool' into an openstack handler works fine here, so long as the IDE is open before the stack is opened, but not if I attempt to launch Livecode by opening the stack. Colin's script works, but you might notice the stack opens and when the IDE first opens, it is set to pointer and then switches to browse, which demonstrates the problem.
Warren _______________________________________________ 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