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.
Colorize field wile typing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Colorize field wile typing
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
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
Yes I've done that. Just wanted to know if it was the correct thing to do.
Thanks Craig!
Thanks Craig!