"create" command jumps from "run" to "edit" mode

Kevin Miller kevin at runrev.com
Sun Dec 30 08:47:01 EST 2001


On 30/12/01 12:39 pm, Sjoerd Op 't Land <sjoerdoptland at mac.com> wrote:

> This is just expected behaviour. If you want to do this things hidden, you
> need to change two things:
> 
> 1. the tool should be 'browse' at the end of your script:
> choose browse tool
> 
> 2. some flickering of the tools palette can be avoided too (only necessary
> in IDE)
> lock screen
> -- do things
> unlock screen
> -- although the screen is automatically unlocked when finishing all
> running scripts
> 
> So your new 'undercover' script is:
> 
> on mouseUp
>   lock screen
>   create field "test"
>   choose browse tool
> end mouseUp
> 
> Hope this helps.

One other alternative is to lock messages at the start of the script to
prevent the Revolution UI from changing the tool.

Kevin

Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
Runtime Revolution Limited - Power to the Developer!
Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.




More information about the use-livecode mailing list