I tried, it didn't work. Which triggered to look through documentation one more
time.
Funny that just before i saw the same example there is this written:
"If there are two (or more) virtual events that are both triggered by the same
sequence, and both of those virtual events are bound to the same window tag,
then only one of the virtual events will be triggered, and it will be picked at
random"
Why is there such a severe restriction?
>
>
> do you meen something like that ?
> $widget->eventAdd('<<Paste>>' => '<Control-y>');
> $widget->eventAdd('<<Paste>>' => '<Button-2>');
> $widget->eventAdd <<Scroll>>' => '<Button-2>');
> $widget->bind('Tk::Entry','<<Paste>>',sub { print 'Paste'});
> $widget->bind('Tk::Entry','<<Scroll>>', sub {print 'Scroll'});you can paste
> by 2 way, or do 2 thing with the middle button
>
> > Hello, perl Users.
> >
> > I've been playing with Tk and encountered that I can't (or possibly don't
> know how to) bind more than one callback to the particular sequence (on the
> same tag level).
> >
> > Is there any workaround? Can Win32::Gui handle this?
> >
> > Thanks in advance,
> > Artem A. Avetisyan.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs