Remain focused

David Vaughan drvaughan55 at
Sat Feb 23 01:12:01 EST 2002


I have not looked at any more advanced possibility in RR but many years 
ago (I just looked it up) I solved a similar problem in HC thus:

on mouseLeave -- the field of interest
   global gDateSpot
   if target is me then put the selectedLine into gDateSpot
end mouseLeave

In my case I wanted a button click to insert today's date before the 
paragraph containing the insertion point. You would presumably use the 
selectedText or chunk. Note that my date button also captured the 
insertion point  and reinstated it after putting the date at the start 
of the paragraph.


On Saturday, February 23, 2002, at 03:34 , Terry Vogelaar wrote:

> Silly problem: I made a toolbar that should do the same thing as the
> menubar. But commands like "copy" and "paste" don't work in the toolbar
> buttons, because as soon as I click on a button, the text field loses 
> its
> focus and there is no text selected anymore. Any suggestions?
> Terry
> _______________________________________________
> use-revolution mailing list
> use-revolution at

More information about the Use-livecode mailing list