[perl-win32-gui-users] global destruction

2006-02-25 Thread Octavian Rasnita
Hi, I have tried to set an event handler -onLostFocus, but if the control loses the focus when the application closes (alt+F4), it gives the following error: Can't call method "Text" on an undefined value at E:\lucru\agenda\agenda.pl line 68 during global destruction. How can I detect if the con

[perl-win32-gui-users] dynamic menus

2006-02-25 Thread Octavian Rasnita
Hi, I want to create a part of a menu based on some settings from a configuration file, so I want it to be created on runtime. I want to have a menu item something like: ... "> &Languages" => "Languages", ">> &English" => {-name => "english", -checked => 1, -onClick => \&change_interface('en')},

[perl-win32-gui-users] Change()

2006-02-25 Thread Octavian Rasnita
Hi, Does anyone have an example of using the Change() method (or another way) for modifying the text that appears in the menus? I want to let the user change the language of the interface without needing to restart the application, so I need rewriting the menus. Perhaps it is possible to create m