Shifted field text- what to do?

Jeanne A. E. DeVoto jeanne at runrev.com
Sat Aug 9 19:15:01 EDT 2003


At 3:11PM -0700 8/9/03, Ken Ray wrote:
>I have this problem that the field is smaller than the text that is in
>it. When I tab into the field, the text is highlighted, but pushed off
>to the left. For example, a field that says "United States" in it, but
>unselected shows "United S" would end up showing "d States" when it was
>highlighted. When you tab out of the field, it *leaves* it that way.
>
>So I'm trying to do one or both of the following:
>
>1) Keep the text from shifting to the left when it gets highlighted as
>the cursor enters the field
>
>2) Keep the text from remaining shifted when I tab out of the field (or
>alternately, be able to restore the text to its original state when it
>tabs out


(I'm assuming the field has its dontWrap set to true.)

Try this:

on closeField
  set the hScroll of the target to zero
end closeField

on exitField
  closeField
end exitField

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - Software at the Speed of Thought
http://www.runrev.com/





More information about the use-livecode mailing list