Is it U3 or me

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Is it U3 or me

Post by quailcreek » Sun Feb 11, 2007 1:53 pm

Hello everyone
I wanted to check with every body about something strange. I'm running RR U3. I'm getting a mouseEnter and mouseLeave event in EDIT mode. Is anyone else seeing this? The following script runs in EDIT mode.

Tom

Code: Select all

on mouseenter
  set the textcolor of me to red
end mouseenter
  
on mouseLeave
  set the textColor of me to black
end mouseLeave

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Feb 11, 2007 2:09 pm

Hi,

This is not U3, it is Rev and it is "normal".
I don't like this behaviour either, I even think it is a bug, but I don't think RunRev Ltd will change this.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Post by quailcreek » Sun Feb 11, 2007 2:19 pm

Thaks Mark. That's a bit unsetteling. The RR documentation states these events only get passed in Browse. Makes one think.

Tom

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Post by quailcreek » Sun Feb 11, 2007 3:25 pm

I guess I shouldn't be so hard no RR LTD. I recall that Toolbook sent an enterpage event at EDIT mode. We just worked around it. Here's what I did to handle the mouseEnter and mosueLeave events in RR.

Tom

Code: Select all

on mouseEnter
  if the tool is "browse tool" then
    set the highlight of me to true
  end if
end mouseEnter

on mouseLeave
  if the tool is "browse tool" then
    set the highlight of me to false
  end if
end mouseLeave

Post Reply