Setting the Border Color

Ken Ray kray at sonsothunder.com
Fri Aug 26 10:06:15 EDT 2005


On 8/26/05 8:59 AM, "David Burgun" <dburgun at dsl.pipex.com> wrote:

> Hi,
> 
> How do I set the Border Color for a Field?
> 
> I have the following code on a field:
> 
> on dragEnter
> set the dropAccept to true

Uh, this is "acceptDrop". That should fix it...

BTW: Don't forget to reset the borderColor on dragLeave... something like
this:

on dragEnter
  set the acceptDrop to true
  set the borderColor of the target to green
  pass dragEnter
end dragEnter

on dragLeave
  set the borderColor of the target to ""
end dragLeave

HTH,

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





More information about the use-livecode mailing list