Set Color for Selected Text

J. Landman Gay jacque at hyperactivesw.com
Fri Aug 3 20:23:41 EDT 2007


Sivakatirswami wrote:
> Is there an easy way to set custom colors for selected text? the default
> menus offer just a few primary colors and "Pen Color"  so how does one
> easily go about
> 
> a) selecting text
> b) using the color picker to choose some other color on screen
> c) set the color of the select color to that color?
> 
> (Again, this is something that should just be part of the IDE by 
> default...)

Try:

   answer color
   set the textcolor of the selectedchunk to it

You'll have to use a UI that doesn't deslect whatever text you've 
chosen. I tested with a 'mouseup' handler in the field because it will 
trigger with a right-click while leaving the selection intact.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list