Jan Hofmann writes 11 July 1999: >There's one special thing about the command: > >key Key > >This suggests that key takes an integer value (the key value) >as parameter. But key uses internally the function: > >_dialogselect Key > >which expects a hash or an object as parameter. >And using: > >$dlg->key(0) or >$dlg->key() instead of >$dlg->key($ev->key) Yes -- you're quite right. I'd never looked at _dialogselect() before but doing so now I see any argument passed to it is ignored anyway. So that explains your findings. The subroutine just uses $CurrentEvent and passes that as an argument to DialogSelect(). In this case $CurrentEvent would be the key press event. Maybe DialogSelect() is the Toolbox function that does all the work? One would have to look it up in Inside Macintosh. I regret I have no idea how it all works in the sense of how and where the TextEdit routines are picked up. It's very clever stuff, for it would take a considerable amount of code to do what Dialogs does behind the scenes, even with the help of the TextEdit routines. Alan Fry ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org