Browse tool. I give up.

dunbarx at aol.com dunbarx at aol.com
Tue Apr 10 19:30:29 EDT 2012


Mark.


Good reading. Thanks.


I think a preference ought to be available to set the startup tool. Most times, I would think, the browse tool is the one users (or even developers) want. But I do not mind a stable workaround, as long as I don't forget it.


Craig



-----Original Message-----
From: Mark Schonewille <m.schonewille at economy-x-talk.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Tue, Apr 10, 2012 7:20 pm
Subject: Re: Browse tool. I give up.


Hi Craig,

My explanation won't help much, but maybe you like to know the reasons why it 
doesn't work as expected.

I HyperCard there is an IDE layer and a stack layer. Except for the stacks 
themselves, the IDE is written in Pascal (later C) and handle everything. The 
scripts in the Home stack don't get in the way. When you open a stack, HyperCard 
chooses the browse tool and if you want to change tools in your openStack script 
then you can just do that.

MetaCard was written like that too. The engine took care of everything and the 
IDE was minimalistic and didn't get in the way. You could change the tool in 
your openStack script if you wanted to. MetaCard opened with the browse tool as 
the active tool and you could change that to the pointer tool in a plugin for 
instance.

The Revolution (LiveCode) IDE is a different beast. It comes on top of 
everything, including the engine and the remnants of the original MetaCard IDE. 
In the past, after the engine set the tool, the Revolution IDE took over and set 
the tool again --maybe even 2 or 3 times. I believe there are a few bugs in the 
Revolution IDE that prevent it from setting the tool correctly. There were some 
issues with this in the past. 

It seems that RunRev has applied a hack to make sure that the tool is alwaus the 
browse tool (and not a watch cursor as it used to be for many years). After all 
scripts have run, including your own openStack scripts, the IDE chooses the 
pointer tool one more time, just to be sure.

You could move back to the MetaCard IDE. 

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 15:37, DunbarX at aol.com wrote:

> Thanks all.
> 
> 
> I figured this out too, though the explanation was most helpful.
> 
> 
> When I say "figured it out", I meant I tried sending the command in time, 
well, just because.
> 
> 
> In HC, the loading must be different, since one can choose, say, the field 
tool with a one-liner like I tried to do.
> 
> 
> There are millions of legacy habits that I have, coming from a HC background, 
that I need to reThink. Thanks again for the help.
> 
> 
> Craig Newman
> 


_______________________________________________
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