Fri Aug 17 04:29:40 2012: Request 79006 was acted upon.
Transaction: Correspondence added by stephen.cook...@sca-uk.com
       Queue: Wx
     Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: use...@zip.com.au
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79006 >


Hi Guys,

Well I`m pretty sure I use that construct (although I can`t find it now).

I do, or at least I believe I do:

  my $buffer=Wx::RichTextBuffer new();
  $buffer->LoadFile($filepath);

So that I can store and retrieve RTC buffers in order to work with them.

On 16 August 2012 at 03:46 Mark Dootson via RT <bug...@rt.cpan.org> wrote:> Wed
Aug 15 22:46:35 2012: Request 79006 was acted upon.
> Transaction: Correspondence added by mark.doot...@znix.com
> Queue: Wx
> Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: use...@zip.com.au
> Status: new
> Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=79006 >
>
>
> Hi,
>
> I could not find any practical usage for the default
> Wx::RichTextBuffer->new(); constructor which I am fairly sure is really
> only for use within wxRichTextCtrl.
>
> As far as I can see from all the wxWidgets RichText code and the
> wxWidgets docs, there isn't a practical 'user' use for
> Wx::RichTextBuffer->new().
>
> Note: it isn't quite as simple as just wrapping the method as generally
> in the wxWidgets code other classes control wxRichTextBuffer destruction
> - so we would need to track within Perl whether any wxRichTextBuffer
> instances created using Wx::RichTextBuffer->new() need to be deleted by
> Perl code, or have been assigned to some other class. We do this with
> many other classes, but as it seems to me impractical to do anything
> useful with Wx::RichTextBuffer->new(), I have not bothered wrapping it.
>
> If you have a practical use that I've missed, I'll add it to the 'todo'
> list.
>
> Regards
>
> Mark
>
>
> On 16/08/2012 02:46, Kevin Ryde via RT wrote:
> > Wed Aug 15 21:46:48 2012: Request 79006 was acted upon.
> > Transaction: Ticket created by use...@zip.com.au
> > Queue: Wx
> > Subject: RichTextBuffer new() no args
> > Broken in: (no value)
> > Severity: (no value)
> > Owner: Nobody
> > Requestors: use...@zip.com.au
> > Status: new
> > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=79006>
> >
> >
> > If I read the wx docs correctly there's a "default constructor" to
> > create a new RichTextBuffer (as well as a copy constructor to
> > duplicate). It could be good if the default one was wrapped to allow
> >
> > my $buf = Wx::RichTextBuffer->new;
> >
> > which otherwise gives for me
> >
> > Usage: Wx::RichTextBuffer::new(CLASS, obj) at foo.pl line 3.
> >
> >
> >
>
>

Reply via email to