LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
It's been quite some time now hoping you're all well!!!
I am having a little stupid problem...............does anyone have found a "very fast" way of "Un-Hilite or De-Hilite" a line that has previously hilited with the clickline function??
I tried selecting line 0 of the field but kind of very slow on iOS!!!
Actually i am using a field containing a list of items, all running under scroller.
The "Mouse Up" hdlr is relative to field containing the list.When i user clicks on an item of the list it triggers an Answer msg with "No" or "yes". If the answer is "No" then i return to the list an dehilite the line , if "Yes" a move to another card.
That's what i am trying to achieve but on iOS sometimes the dehilite process is not immediate!
Since i can't test on IOS there isn't a way for me to help directly, but wanted to point out something klaus hinted at.
You don't need to use value to get the value of the clicked line. Since it sounds like you are correctly using a field with the listbehavior property, you also don't need to "select the clickline"
-- simple script in the list field
on mouseUp
put the clicktext into tText -- puts the text of the clicked line into variable tText
answer tText with "No" or "Yes" -- your answer dialog
if it is "no" then
set the hilitedline of me to empty -- empty and 0 both work. Can use the "of me" form since the field is referencing itself.
else
put tText into field "outField"
end if
end mouseUp
Like Klaus, I have no IOS experience yet (though this works on android)