RE: Re[2]: [wxperl-users] ToggleButton

Thank you.


-----Original Message-----
From: Mattia Barbon [mailto:mbarbon@dsi.unive.it]
Sent: Tuesday, February 04, 2003 1:47 PM
To: wxPerl users ML; Ismail Mutlu
Subject: Re[2]: [wxperl-users] ToggleButton


[ please keep replies on-list, thanks! ]

On Tue, 4 Feb 2003 13:36:53 -0800 Ismail Mutlu <imutlu@pechanga.com> =
wrote:

> Hi Mattia,
>=20
> Please bear with me as I am new to both wxPErl and OO, but here is =
what
> I am doing.
  Well, after looking at the code, you are right, and I am wrong: =
GetValue isn't
(and can't be inherited). I will implement it in 0.13; for now, since =
you
are using and event handler, just use $event->GetInt;

Sorry for the confusion
Mattia

> ------------ Sample ---------------------
>     my $d=3D$this->{D}=3DWx::ToggleButton->new( $this, wxID_OK, "iso"
> ,wxDefaultPosition,[20,20],wxSIMPLE_BORDER);
>     EVT_TOGGLEBUTTON($this,$d,\&OnToggle);
> .
> .
> .
> .
>=20
> sub OnToggle {
>         my ($this,$event)=3D@_;
>         print $this->{D}->GetValue();       =20
> }
> ------------ Sample ---------------------
>=20
> When I click on the button I get the following error:
>=20
> Can't locate object method "GetValue" via package "Wx::ToggleButton"



0
imutlu
2/4/2003 9:59:04 PM
perl.wxperl.users 3070 articles. 0 followers. Follow

0 Replies
298 Views

Similar Articles

[PageSpeed] 31

Reply:

Web resources about - RE: Re[2]: [wxperl-users] ToggleButton - perl.wxperl.users

O'Reilly Open Source Convention 2007 • July 23-27, 2007 • Portland, Oregon
O'Reilly Open Source Convention 2007 - July 23-27, 2007 - Portland, Oregon

Resources last updated: 12/6/2015 3:40:07 AM