in reply to changing the focusing-order in Tk
&defineOrder($widget1, $widget2, $widget3) # sub defineOrder { for (my $i = 0; defined($_[$i+1]); $i++) { # REMOVE the anonymous sub call and replace with # reference to widget which has its own scope ${$_[$i]}->bind('<Return>', \${$_[$i+1]}->focus ); } ${$_[0]}->focus; }
this should make the widget scoping work better. This isn't tested so YMMV.
--
hiseldl
"Act better than you feel"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: changing the focusing-order in Tk
by schweini (Friar) on Sep 26, 2002 at 04:27 UTC | |
|
Re: Re: changing the focusing-order in Tk
by schweini (Friar) on Sep 27, 2002 at 23:31 UTC | |
by schweini (Friar) on Sep 28, 2002 at 18:51 UTC | |
by hiseldl (Priest) on Sep 28, 2002 at 22:34 UTC | |
by schweini (Friar) on Sep 29, 2002 at 02:14 UTC |