RE: [perl-win32-gui-users] nem events for menus

2005-12-27 Thread Jeremy White
Is it possible to define a -onClick event for a menu instead of creating an Menu_Click function? File = File, New = { -name = New,-onClick = sub {handle_menu(@_, 1)} }, Open... = { -name = Open, -onClick = sub {handle_menu(@_,

[perl-win32-gui-users] detecting a keystroke

2005-12-27 Thread Octavian Rasnita
Hi, I have seen that the multiline Textfield doesn't lose the focus when the tab or shift+tab key are pressed, and I want to trap these keys in order to pass the focus to other controls. I have tried using: $Win-AddTextfield( #... -onChar = \tab, ); sub tab { my ($self, $k1, $k2) = @_; if

[perl-win32-gui-users] oem vs nem

2005-12-27 Thread Octavian Rasnita
Hi, I have started using nem instead of oem just because it is new and I think that it might be better and might have some advantages, but is there a practical reason for using nem instead of oem? Sometime I feel that OEM is better because requires less coding... Thank you. Teddy