set the topLeft of fld "F" to the selectedLoc

Ken Ray kray at sonsothunder.com
Tue Nov 18 22:48:30 EST 2003


Eric,

Perhaps the object that is executing the script is removing the
insertion point from the field. If you are clicking a button to see this
happen, you'll need to turn off the traversalOn property of the button.
I just tried it with two fields and a button which had the script:

on mouseUp
  set the left of fld 2 to (item 1 of the selectedLoc)
end mouseUp

and it worked just fine, but only after I turned off the traversalOn
property.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> erik hansen
> Sent: Tuesday, November 18, 2003 5:41 PM
> To: How to use Revolution
> Subject: set the topLeft of fld "F" to the selectedLoc
> 
> 
> read all of the TD "selected" entries but...
> still cannot get <the selectedLoc> to work.
> this is RR 1.1 (still waiting to update),
> so it may work in the latest version as it did
> in HC and MC.
> 
> the idea is to have a small field positioned just
> to the right of an entry in a larger field.
> 
>  on og
>   put "X" after fld "Big_Numbers"
>   -- (in case fld "numbers" = empty)
>   select the last char of fld "Numbers"
>   put item 1 of the selectedLoc into tLeft
>   set the left of fld "Lil_Numbers" to tLeft
>   delete the last char of fld "Numbers"
> end og
> 
> any help appreciated,
> 
> thanks,
> 
> Erik
> 
> =====
> erik at erikhansen.org    http://www.erikhansen.org
> 
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard 
> http://antispam.yahoo.com/whatsnewfree
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 




More information about the Use-livecode mailing list