Basic focus issue - slight fix!
David Bovill
david at openpartnership.net
Thu Nov 10 08:57:29 EST 2005
-- to prevent rapid mouse movements making rev think the target is
the card or something else...
-- probably even better / safer to give all the fields a custom
property and check that
on mouseEnter
put the long id of the target into focussedRecord
if word 1 of focussedRecord is "field" then
set the lockText of focussedRecord to false
end if
end mouseEnter
on mouseLeave
put the long id of the target into focussedRecord
if word 1 of focussedRecord is "field" then
set the lockText of focussedRecord to true
end if
end mouseLeave
--
on openField
put the long id of the target into focusRecord
select_Editable true, focusRecord
--pass focusIn
end openField
on focusIn
put the long id of the target into focusRecord
select_Editable true, focusRecord
--pass focusIn
end focusIn
on focusOut
put the long id of the target into focusRecord
select_Editable false, focusRecord
--pass focusOut
end focusOut
on closeField
put the long id of the target into focusRecord
select_Editable false, focusRecord
--pass closeField
end closeField
More information about the use-livecode
mailing list