Focus, Text and foundChunk

Richmond Mathewson geradamas at yahoo.com
Tue Oct 10 13:06:45 CDT 2006


Thank you Ken Ray:

"Change your code to:

on mouseUp
  find "eating" in fld "F1"
  if the foundChunk is not empty then
    select the foundChunk
  end if
end mouseUp

and you won't have any problems... "

I followed your advice, and being the awkward ***** I
am I had a 'problem':

what I wanted was a selected word without the 'box'
round it,
to achieve this I went:

on mouseUp
  -- thanks to Ken Ray--
  find "eating" in fld "F1"
  if the foundChunk  is not empty then
    select the foundChunk
  end if
  find empty
end mouseUp

the "find empty" clearing away the box, leaving the
word selected!

I have uploaded a new version of my stack to the usual
places:

 http://members.maclaunch.com/richmond/Text
Focus.rev.zip

and

http://tech.groups.yahoo.com/group/richmondsrrr/

have also popped in 2 buttons:

1. to just "FIND" the text - i.e. 'box' without
selection

2. to "un-FIND" the text - i.e. remove the 'box'

sincerely, Richmond Mathewson

____________________________________________________________

"Philosophical problems are confusions arising owing to the fluidity of meanings users attach to words and phrases."
                                       Mathewson, 2006
____________________________________________________________


		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html



More information about the use-livecode mailing list