Hidetoshi NAGAI wrote:
> ----<sample 5>--------------------------------------
> @mytext = 'hi this is a test'
> testtwo = TkEntry.new(Frameone)
> testtwo.value = @mytext
> ev = TkVirtualEvent.new('Button-1', 'Return')
> testtwo.bind(ev){@mytext = testtwo.value; puts @mytext}
> ----------------------------------------------------
> and so on.

Trying your examples and think I understand them and what
they are doing. I have a much better idea of how to use
tkvirtual event anyway.

But The data in the entry box goes into the
variable as soon as I click on the entry box. Not when i click
on the button. Button-1 means left click so I see why this is
so.

How do I change the action to clicking on a button?
I was wondering if the button name instead of button-1 might do
it. But of course it doesnt.

-- 
Posted via http://www.ruby-forum.com/.