From: Peter G. <pe...@pg...> - 2006-10-25 14:14:50
|
Hi. Attached are two files. One is a Perl program which a) defines MyTextCtrl as a subclass of wxTextCtrl b) installs an XRC handler c) initializes the handlers d) tries to lookup a Window using FindWindow e) fails to get a handle The XRC was created using DialogBlocks with a small, but necessary change. DialogBlocks defines the class wxTextCtrl, with a subclass of MyTextCtrl. Perl does not like this. It seems to insist that the class itself be MyTextCtrl. (Is this a wxPerl issue or a DialogBlocks issue?) The major problem is that the lookup on the window, ID_TEXTCTRL, fails. If the class name in the xrc file is changed back to wxTextCtrl, the program does not complain, so I don't think it is the result of a typo. Any help appreciated. Thanks, Peter |