Hi Paul,

I like your idea to use textshift for screenrefresh, no fiddling with
selectedChunk etc.

Just one little change to your code in case textshift has not been set
before. Then textShift would be empty.
Adding 0 to it will not change previous text shift and if textShift has not
been set it will not throw an error.
And a textShift of 0 does not accumulate "textShifts" in
styledText/htmlText.

--------------------------------------------------
on textChanged
   set the textShift of last char of me to the textShift of last char of me
+0
end textChanged
--------------------------------------------------

Kind regards
Bernd


Paul Hibbert-4 wrote
> I wondered if the textShift would help and found this works too;
> 
> on textChanged
>    set the textShift of last char of me to the textShift of last char of
> me
> end textChanged





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/gjpqy-cut-off-while-typing-tp4696789p4696799.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to