list fld mouserelease
Posted: Wed May 18, 2011 10:44 am
Hi All,
Theres a list field : MutipleHilite = false,ContiguousHilite = false,ContiguousHilite = false
I need to restaure the prev hilitedlines (on only in this case) of a list field when the user clic and the mouse is not over the fld
This script make the job but maeby someone have a best way
Best from Geneva beach
Jean-Marc
Theres a list field : MutipleHilite = false,ContiguousHilite = false,ContiguousHilite = false
I need to restaure the prev hilitedlines (on only in this case) of a list field when the user clic and the mouse is not over the fld
This script make the job but maeby someone have a best way
Code: Select all
local sPrevNoLine,sCurNoLine,sLeCurFld
on mouseenter
put the short name of the target into sLeCurFld
put the hilitedlines of fld sLeCurFld into sPrevNoLine
dansmes sPrevNoLine&&sCurNoLine
end mouseenter
on mousedown
put the hilitedlines of fld sLeCurFld into sCurNoLine
dansmes sPrevNoLine&&sCurNoLine
end mousedown
on mouseup
put the hilitedlines of fld sLeCurFld into sCurNoLine
put sCurNoLine into sPrevNoLine
dansmes sPrevNoLine&&sCurNoLine
end mouseup
on mouseLeave
put the hilitedlines of fld sLeCurFld into sCurNoLine
put sCurNoLine into sPrevNoLine
dansmes sPrevNoLine&&sCurNoLine
end mouseLeave
on mouserelease
set the hilitedlines of fld sLeCurFld to sPrevNoLine
dansmes sPrevNoLine&&sCurNoLine
end mouserelease
--•• DEV
on dansmes t
if the environment = "development" then
put t
end if
end dansmes
Jean-Marc