How can I keep selected text hilited?

Mark Talluto userev at canelasoftware.com
Mon Mar 20 19:50:41 EST 2006


On Mar 20, 2006, at 4:34 PM, Dr. Robert E. Ball wrote:

> Dan and Mark -- thank you so much. The selectionChanged was exactly  
> what I
> needed, but with the backgroundColor changed to yellow, not the
> foregroundColor (which makes the text yellow, not the background).


Give this a try:

on selectionChanged
     if the backGroundColor of the selectedChunk is 255,255,0 then
         set the backGroundColor of the selectedChunk to 255,255,255
     else
         set the backGroundColor of the selectedChunk to 255,255,0
     end if
end selectionChanged


Mark Talluto
-- 
CANELA Software
http://www.canelasoftware.com




More information about the use-livecode mailing list