Claus Dreischer wrote:
The problem was here was indeed the hilite.
Putting
put "hello world" into the selection
or
put "hello world" after the selection
in a button works.
Putting one of the above into a popup button doen't work.
So, is there a way to somehow "store" the selection before it get lost?
Can i insert text into a field from a popup button?
You have a couple of choices. The easiest is to just turn off
auto-hilite and substitute your own handlers. On mousedown, hilite the
button, on mouseUp and mouseRelease, unhilite it.
The second way is to use a local script variable to store the
selectedchunk. When the button is released, reselect the stored chunk:
local sStoredChunk
on mouseDown
put the selectedchunk into sStoredChunk
end mouseDown
on mouseUp
select sStoredChunk
end mouseUp
on mouseRelease
select sStoredChunk
end mouseRelease
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution