Page 1 of 1

Colorize field wile typing

Posted: Wed Feb 18, 2015 3:38 pm
by FredBeck
Hi,
I'd like to colorize a field while typing to check the syntax, like the script editor.
When I set the htmlText, the cursor respawns at char 1, idem with the scroll.
How do you guys do it? Do I need to reclick and rescroll after I'm done, or is there a special trick to it?
Fred.

Re: Colorize field wile typing

Posted: Wed Feb 18, 2015 5:37 pm
by dunbarx
Hi.

Do I understand that you want to hold the scroll constant while you do other stuff with that field? If so, save the scroll in a custom property of the field and restore it after you are done with your colorization or whatever. Depending on what you are doing, you might be able to lock the screen in your handlers, so the user does not even see the restore process.

Craig Newman

Re: Colorize field wile typing

Posted: Wed Feb 18, 2015 5:57 pm
by FredBeck
Yes I've done that. Just wanted to know if it was the correct thing to do.
Thanks Craig!