From: Mattia B. <mb...@ds...> - 2002-08-17 11:54:37
|
> hello all > > has someone an idea why i get: > > Can't locate object method "Show" via package "Wx::GenericMessageDialog" > > (perhaps you forgot to load "Wx::GenericMessageDialog"?) Yes: the inheritance tree is different and the tests (02_inheritance.t, to be specific) did not spot that. > when i try: > > > my $dialog = Wx::MessageDialog->new($this, "foo", "bar", wxOK); > > $dialog->Show; > > on linux ? > (works on windows!) > > the sample doesn't work too > (listctrl.pl -> File -> About -> Crash (on linux)) Putting @Wx::GenericMessageDialog::ISA = 'Wx::MessageDialog'; in your program should work (yes, this is an hack) Regards Mattia |