Stopping a return and backspace in an editable list field
Posted: Wed Mar 25, 2009 6:52 pm
Hi, I'm working on my script collector prog today. I have a list field where the user puts in the name/heading of the particular code they have saved which is in another field.
For selection of any of the headings/lines in the list field I have the following selected in the Property Inspector, AutoHilite and List Behaviour, no probs.
For editing or deleting I have a button, whose script is:
This works fine for editing or deleting the entries but I want the lines to be independant of each other somehow, so that backspace doesnt jump up to the line above and return doesn't jump the cursor to the line below. But clicking on any other line allows editing of that line still. Hope I've explained this OK?
Anyone have any advice here please
For selection of any of the headings/lines in the list field I have the following selected in the Property Inspector, AutoHilite and List Behaviour, no probs.
For editing or deleting I have a button, whose script is:
Code: Select all
on mouseUp pMouseBtnNo
if the hilight of me is false then
lock screen
set the locktext of field "List Field" to true
set the listbehavior of field "List Field" to true
unlock screen
else
if the hilight of me is true then
lock screen
set the locktext of of field "List Field" to false
set the listbehavior of field "List Field" to false
unlock screen
end if
end if
end mouseUp
Anyone have any advice here please
