A Problem with Return in a Field

Charles Szasz cszasz at mac.com
Thu Dec 14 18:56:43 EST 2006


Despite the suggestions made to correct this problem, the problem  
still exists. I tried the suggestion of changing the field of the  
field so that only one line could fit.  i changed the fields to a  
field height of 18 and a text height of 14 with and without Don't  
Wrap option turn on and off. But that only works on a sporadic basis.  
The numbers will disappear to the left and pressing the Return does  
nothing to restate the numbers or advance to the next field. You have  
to use the Delete to make the two digit number appear but pressing  
the Return again makes the number disappear again. This occurred in  
one of five edit fields with all having the same dimensions and  
options in the Inspector.
This is the script:

on keyDown whichKey
   if whichKey is a number then
     if the selection is not empty then delete the selection
     if the length of me < 2 then
       pass keyDown
     else
       beep
     end if
   end if
end keyDown


I also tried another suggestion that forces a Return to tab but that  
disable the script for allowing only two digits numbers in the  
script. So, it really lo


Charles Szasz
cszasz at mac.com






More information about the use-livecode mailing list