From: Martin B. <mb...@ib...> - 2004-07-07 10:10:30
|
Hi, Can anyone enlighten me how to call a second frame in the example below ? I have a button in 1 Frame, and when I click it, it loads the second Frame. I would like this to be Modal, but when I use ShowModal(), I get the error message .. Can't locate object method "ShowModal" via package "MyFrame2" (perhaps you forgo t to load "MyFrame2"?) at U:\perl\source\panel2\multi.pl line 107. Apologies in advance if this is basic, and yes I have tried reading the documentation. Regards Martin __code overview__ package MyFrame sub new sub __set_properties EVT_BUTTON ( $self, $self->{button_1}, \&load_next ); sub __do_layout sub load_next { my $frame_2 = main::MyFrame2->new(); $frame_2->Show(1); # I would like to use ShowModal } 1; package MyFrame2 sub new sub __set_properties sub __do_layout 1; ****************************************************************************** The information in this document, including any attachments or subsequent correspondence originating from this email address ("email"), is confidential and may be legally privileged. It is intended solely for the addressee. However, it may be intercepted by the system controller at Bankgesellschaft Berlin AG for the purposes of monitoring communications relevant to the system controller's business. Access to this email by anyone else is unauthorised. If you have received this email in error, please notify the Sender immediately by telephone. Please also delete this email from your computer. Any form of reproduction, dissemination, copying, disclosure, modification, distribution or publication of this email is prohibited without the prior consent of Bankgesellschaft Berlin AG. If you are not the intended recipient, any action taken or omitted to be taken in reliance of this email is strictly prohibited and may be unlawful. Bankgesellschaft Berlin AG accepts no liability for the consequences of any person acting, or refraining from action in reliance of this email ****************************************************************************** |