Hello,
I don't think there is a MakeModal method for Wx::Frame.
OTOH: if you want a modal thing, you should use a dialog box,
not a frame.
Regards
Mattia
---------- Initial Header -----------
>From : wxperl-users-admin@xxxxxxxxxxxxxxxxxxxxx
To : "Martin Bower"
mbower@xxxxxxxxxxxxxxxxxxxxxxxx,wxperl-users@xxxxxxxxxxxxxxxxxxxxx
Cc :
Date : Wed, 7 Jul 2004 12:33:51 +0200
Subject : RE: [wxperl-users] 2 frames - How to call the other with ShowModal
> HI,
>
> As far as I am aware ShowModal only works with Wx::Dialog.
>
> One method you could try is below:
>
> $frame_2->Show(1);
> $frame_2->MakeModal(1);
>
> I have not used this myself but give it a try.
>
> Mark
>
>
> > -----Original Message-----
> > From: wxperl-users-admin@xxxxxxxxxxxxxxxxxxxxx
> > [mailto:wxperl-users-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf
> > Of Martin Bower
> > Sent: 07 July 2004 12:09 PM
> > To: wxperl-users@xxxxxxxxxxxxxxxxxxxxx
> > Subject: [wxperl-users] 2 frames - How to call the other with
> > ShowModal
> >
> > 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
> > **************************************************************
> > ****************
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by Black Hat Briefings & Training.
> > Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> > digital self defense, top technical experts, no vendor
> > pitches, unmatched networking opportunities. Visit
> > www.blackhat.com _______________________________________________
> > wxperl-users mailing list
> > wxperl-users@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.sourceforge.net/lists/listinfo/wxperl-users
> >
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> wxperl-users mailing list
> wxperl-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/wxperl-users
>
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
|