I am trying to get my head around dot syntax and want to change the
foreColor of the mouseLine whilst the mouse is within the fileds boundaries
and reset it once it leaves. I'm new to the whole dot syntax thing and can
achieve the correct result using 'conventional' syntax, so please bear with
me if this example looks simple &/or ridiculous!
In this instance pTextField is a field cast member and pDefaultColor /
pHiliteColor are defined by properties set by the
getPropertydescriptionList.
on mouseEnter me
gSprite = sprite(me.spriteNum)
end mouseEnter me
on mouseWithin me
gLines = member(pTextField).line.count
hiliteLines
end mouseWithin me
on hiliteLines
repeat with i = 1 to gLines
if the mouseLine = i then
pTextField.line[i].foreColor = pHiliteColor
else
pTextField.line[i].foreColor = pDefaultColor
end if
end repeat
end hiliteLines
on mouseLeave me
repeat with i = 1 to x
pTextField.line[i].foreColor = pDefaultColor
end repeat
end mouseLeave me
Thanks for any help.
Dave.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]