Re: Destructors eg wxBitmap::~wxBitmap

2009-09-08 Thread Mattia Barbon
Steve Cookson wrote: Hi, I can't see any obvious samples that tell you how the Perl syntax works for removing an element, like a bitmap, a textctrl or a button. Any pointers would be welcome. For all classes derived from wxWindow you can use -Destroy. Most other classes (including

Destructors eg wxBitmap::~wxBitmap

2009-09-07 Thread Steve Cookson
Hi Guys, I can't see any obvious samples that tell you how the Perl syntax works for removing an element, like a bitmap, a textctrl or a button. Any pointers would be welcome. Regards Steve Blank Bkgrd.gif

Re: Destructors

2009-08-08 Thread Mattia Barbon
Steve Cookson wrote: Hi, Thanks to everyone for their help. Here is an answer that works: $self-{Notebook_tab_1}-DestroyChildren(); $self-{Notebook}-RemovePage(0); Doing it like this will leak the page object; unless you later reuse the window in

RE: Destructors

2009-08-07 Thread Steve Cookson
use a different command. Regards Steve -Original Message- From: Andri Möll [mailto:an...@dot.ee] Sent: 07 August 2009 13:53 To: Steve Cookson Cc: wxperl-users Subject: Re: Destructors On Fri, 2009-08-07 at 13:23 -0300, Steve Cookson wrote: Hi Guys, Does anyone know what

RE: Destructors

2009-08-07 Thread Steve Cookson
To: wxperl-users@perl.org Cc: 'Andri Möll' Subject: RE: Destructors Hi Andri, Thanks for this. So my frame is called $self, and I have a TextCtrl on it called $self-{Field_Txt}. I tried to do: DESTROY($self-{Field_Txt}); . . . . . sub DESTROY{ } but it doesn't work