How can I keep selected text hilited?

Dan Shafer revolutionary.dan at gmail.com
Mon Mar 20 19:09:25 EST 2006


Robert....

Sure. Just set the foreColor of the selectedText to the hiliteColor. That
makes the change sticky.


On 3/20/06, Robert E. Ball <reball at mac.com> wrote:
>
> I want the user of my program to be able to hilite portions of a text
> field on a given card (similar to using a yellow hilite pen on a book
> page -- I have set hiliteColor to yellow) and then to have the
> hilited text show up when the user returns to the card.
>
> When I first double click on a word in a field, the selected word's
> backgroundColor turns yellow, as it should. However, when I double
> click on another word in the field, the yellow backgroundColor of the
> previously selected word is removed and the backgroundColor of the
> second selected word is yellow. I understand why this works -- a new
> word has been selected. However, is it possible to write a script to
> save the yellow backgroundColor of all selected words. In other
> words, I would like my cards to look just like the page of a book
> that has hilited text.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Information Product Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
>From http://www.shafermediastore.com/tech_main.html



More information about the Use-livecode mailing list