Page 1 of 1

Is it U3 or me

Posted: Sun Feb 11, 2007 1:53 pm
by quailcreek
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

Posted: Sun Feb 11, 2007 2:09 pm
by Mark
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

Posted: Sun Feb 11, 2007 2:19 pm
by quailcreek
Thaks Mark. That's a bit unsetteling. The RR documentation states these events only get passed in Browse. Makes one think.

Tom

Posted: Sun Feb 11, 2007 3:25 pm
by quailcreek
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