Re: HilitedLine of list field lost when unlocked field selected

2018-05-31 Thread dunbarx via use-livecode
Hi. I am in v. 8.1.9 and do not see this in either locked or unlocked fields. I made three, clicked on a line in each, which hilited correctly, and then both tabbed and clicked all morning through them. Each hilited line stuck unless I changed it. Craig -- Sent from: http://runtime-revolution

Re: HilitedLine of list field lost when unlocked field selected

2018-05-31 Thread Bob Sneidar via use-livecode
Hi David. Not sure about your issue losing the selection when tabbing between controls. However many have instituted a method of setting the imageSource of the first character of a line of a field to mark a hilited line. Since things like check marks and bullets are not consistent in fonts bet

HilitedLine of list field lost when unlocked field selected

2018-05-30 Thread David Epstein via use-livecode
This seems like a problem that I’ve solved before, but I can’t recall how. With a line hilited in a locked list-behavior-true field, I can use the mouse to select text in any of a number of unlocked fields without disturbing my list’s hilite. But if I use the tabKey to move the insertion point

Re: hilitedline

2014-10-27 Thread Geoff Canyon
I replied in the other thread as well, but: function removeLines lineList,S put 0 into lineCounter split lineList with comma as set repeat for each line L in S add 1 to lineCounter if lineList[lineCounter] then next repeat put L & cr after R end repeat return char

Re: hilitedline

2014-10-26 Thread Mark Wieder
John- Sunday, October 26, 2014, 1:22:37 PM, you wrote: > I had trouble with that too. Most people > probably do. If you are deleting a bunch > of lines say that are 5 thru 38 you can > delete line 5 and then keep deleting line > 5 until you have deleted enough lines. LOL. Quite true. I never t

Re: hilitedline

2014-10-26 Thread JB
I wish I wasn't so dense. > Larry > > - Original Message - From: "Terry Judd" > To: "How to use LiveCode" > Sent: Sunday, October 26, 2014 4:35 AM > Subject: Re: hilitedline > > > Larry - you need to delete the lines in reverse

Re: hilitedline

2014-10-26 Thread larry
Thanks Terry, Sometimes I wish I wasn't so dense. Larry - Original Message - From: "Terry Judd" To: "How to use LiveCode" Sent: Sunday, October 26, 2014 4:35 AM Subject: Re: hilitedline Larry - you need to delete the lines in reverse orderŠ put the hilited

Re: hilitedline

2014-10-26 Thread Terry Judd
14 7:58 pm, "la...@significantplanet.org" wrote: >I have the following script in a button: > >on mouseUp > >put the hilitedline of field "mySelects" into myDelete > >repeat for each item L in myDelete > >delete line L of field "mySelects" > >end

hilitedline

2014-10-26 Thread larry
I have the following script in a button: on mouseUp put the hilitedline of field "mySelects" into myDelete repeat for each item L in myDelete delete line L of field "mySelects" end repeat end mouseUp If the hilitedlines of the field are, say, 1,4,7 then it will delete

Re: Can't set hilitedLine inside openStack

2013-06-19 Thread J. Landman Gay
On 6/19/13 2:02 PM, Paul D. DeRocco wrote: This turned out to be a dumb cockpit error. I had misspelled the property name "hililtedLine", which is very hard to see in the proportional spaced font that the IDE uses to display these things. It's working as expected now, setting the property in the

RE: Can't set hilitedLine inside openStack

2013-06-19 Thread Paul D. DeRocco
This turned out to be a dumb cockpit error. I had misspelled the property name "hililtedLine", which is very hard to see in the proportional spaced font that the IDE uses to display these things. It's working as expected now, setting the property in the preOpenStack handler. -- Ciao,

Re: Can't set hilitedLine inside openStack

2013-06-19 Thread André Bisseret
substack "bar", I put a field "foo" with several lines of text setting the lockText to true and listBehavior to true. the script of the field "foo" is : on selectionChanged global gLineNum, -- put the hilitedLine of me into gLineNum end selectionChanged

Can't set hilitedLine inside openStack

2013-06-18 Thread Paul D. DeRocco
matching line in a variable, or "empty" if there is no match, and then do set the hilitedLine of field "foo" of stack "bar" to n It does bupkis; no matter what, the first line remains selected. If I set a breakpoint on this line, and open the stack manually (i.e

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
e LiveCode > Subject: Re: the hilitedLine of list field isn't highlighted > > On 6/6/11 12:23 PM, Slava Paperno wrote: > > Jacqueline, > > > > You're responding to "email script" with obvious goofs, sorry--but a > little > > later I posted a l

Re: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay
one on the list confirmed that the demo fails the same way on his Mac. Does it fail for you? Yes, your example fails (Mac). I suspect that "focus" isn't actually activating the field. This works: on mouseup focus on fld "listfield" select line (the hilitedline of

RE: the hilitedLine of list field isn't highlighted

2011-06-06 Thread Slava Paperno
M > To: How to use LiveCode > Subject: Re: the hilitedLine of list field isn't highlighted > > On 6/5/11 12:19 AM, Slava Paperno wrote: > > I have a list field ("MyListField") with a rawKeyDown handler that > tells me > > which line is the hilitedLine after

Re: the hilitedLine of list field isn't highlighted

2011-06-06 Thread J. Landman Gay
On 6/5/11 12:19 AM, Slava Paperno wrote: I have a list field ("MyListField") with a rawKeyDown handler that tells me which line is the hilitedLine after every key press. on rawKeyDown parKey put return& the hilitedLine of me after msg pass rawKeyDown parKey end of rawKeyDow

the hilitedLine of list field isn't highlighted

2011-06-04 Thread Slava Paperno
I have a list field ("MyListField") with a rawKeyDown handler that tells me which line is the hilitedLine after every key press. on rawKeyDown parKey put return & the hilitedLine of me after msg pass rawKeyDown parKey end of rawKeyDown When I press the Up Arrow and Down Arrow