Skip Menu |
 
Update: The rt.cpan.org bug tracker service is no longer shutting down.

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 79006
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



From gg [...] zip.com.au Wed Aug 15 21: 46:47 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-6.746 tagged_above=-99.9 required=10 tests=[AWL=0.154, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <877gszwqv9.fsf [...] blah.blah>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.746
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id AF6F42406B0 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Wed, 15 Aug 2012 21:46:47 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1xMx7p7y5fQ4 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Wed, 15 Aug 2012 21:46:46 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 26F2924065D for <bug-Wx [...] rt.cpan.org>; Wed, 15 Aug 2012 21:46:45 -0400 (EDT)
Received: (qmail 32336 invoked by uid 103); 16 Aug 2012 01:46:45 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 Aug 2012 01:46:45 -0000
Received: from mailout2-14.pacific.net.au (HELO mailout4-syd3.pacific.net.au) (125.255.80.141) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 15 Aug 2012 18:46:43 -0700
Received: from mailproxy3-syd3.pacific.net.au (mailproxy3-syd3.pacific.net.au [61.8.2.164]) by mailout4-syd3.pacific.net.au (Postfix) with ESMTP id 0FF77A260A for <bug-Wx [...] rt.cpan.org>; Thu, 16 Aug 2012 11:46:40 +1000 (EST)
Received: from blah.blah (unknown [203.26.175.16]) by mailproxy3-syd3.pacific.net.au (Postfix) with ESMTP id CC0D7578099 for <bug-Wx [...] rt.cpan.org>; Thu, 16 Aug 2012 11:46:38 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1T1pAQ-0005Cx-5K for bug-Wx [...] rt.cpan.org; Thu, 16 Aug 2012 11:46:34 +1000
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
Subject: RichTextBuffer new() no args
Return-Path: <gg [...] zip.com.au>
X-RT-Mail-Extension: wx
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Thu, 16 Aug 2012 11:46:34 +1000
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
X-RT-Original-Encoding: ascii
Content-Length: 375
Download (untitled) / with headers
text/plain 375b
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. -- "Even the white bits were black"
From mark.dootson [...] znix.com Wed Aug 15 22: 46:34 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-7.158 tagged_above=-99.9 required=10 tests=[AWL=-0.258, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-23811-1345081608-768.79006-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
X-Cloudmark-Analysis: v=1.1 cv=AUhbpHVS+xhHrj9wLCYAQoYnFLYUZdbP8UM0GmH2jwk= c=1 sm=0 a=GzcU7xPzs-0A:10 a=aSWX9Lr6P8IA:10 a=AC4b6R8PCdgA:10 a=vTysJlDgsfoA:10 a=IkcTkHD0fZMA:10 a=vrnE16BAAAAA:8 a=eNcD7ojaAAAA:8 a=2roIbEUemfhJxGCGzYkA:9 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
References: <RT-Ticket-79006 [...] rt.cpan.org> <877gszwqv9.fsf [...] blah.blah> <rt-3.8.HEAD-23811-1345081608-768.79006-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <502C5EFC.9040008 [...] znix.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7.158
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id AA034240734 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Wed, 15 Aug 2012 22:46:34 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Lxvs1JFAqh2 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Wed, 15 Aug 2012 22:46:33 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 251CA240733 for <bug-Wx [...] rt.cpan.org>; Wed, 15 Aug 2012 22:46:32 -0400 (EDT)
Received: (qmail 4084 invoked by uid 103); 16 Aug 2012 02:46:32 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 Aug 2012 02:46:32 -0000
Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 15 Aug 2012 19:46:28 -0700
Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120816024624.HDBY1732.mtaout02-winn.ispmail.ntl.com [...] aamtaout01-winn.ispmail.ntl.com> for <bug-Wx [...] rt.cpan.org>; Thu, 16 Aug 2012 03:46:24 +0100
Received: from homebase.dootson.net ([86.28.223.78]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20120816024624.YWGY8396.aamtaout01-winn.ispmail.ntl.com [...] homebase.dootson.net> for <bug-Wx [...] rt.cpan.org>; Thu, 16 Aug 2012 03:46:24 +0100
Received: from [127.0.0.1] (WorkstationUK.dootson.net [10.10.100.241]) by homebase.dootson.net (Postfix) with ESMTP id B5299C8700 for <bug-Wx [...] rt.cpan.org>; Thu, 16 Aug 2012 03:46:22 +0100 (BST)
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1
Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args
Return-Path: <mark.dootson [...] znix.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
Date: Thu, 16 Aug 2012 03:46:20 +0100
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Mark Dootson <mark.dootson [...] znix.com>
RT-Message-ID: <rt-3.8.HEAD-12395-1345085195-994.79006-0-0 [...] rt.cpan.org>
Content-Length: 1705
Download (untitled) / with headers
text/plain 1.6k
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: Show quoted text
> Wed Aug 15 21:46:48 2012: Request 79006 was acted upon. > Transaction: Ticket created by user42@zip.com.au > Queue: Wx > Subject: RichTextBuffer new() no args > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: user42@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. > > >
From stephen.cookson [...] sca-uk.com Fri Aug 17 04: 29:39 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-6.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-12395-1345085195-1821.79006-15-0 [...] rt.cpan.org>
X-Mailer: Open-Xchange Mailer v6.20.6-Rev3
X-Spam-Flag: NO
References: <RT-Ticket-79006 [...] rt.cpan.org> <877gszwqv9.fsf [...] blah.blah> <rt-3.8.HEAD-23811-1345081608-768.79006-4-0 [...] rt.cpan.org> <502C5EFC.9040008 [...] znix.com> <rt-3.8.HEAD-12395-1345085195-1821.79006-15-0 [...] rt.cpan.org>
Importance: Medium
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Reply-To: "stephen.cookson [...] sca-uk.com" <stephen.cookson [...] sca-uk.com>
Message-ID: <1575254680.334826.1345192166791.JavaMail.open-xchange [...] webmail.123-reg.co.uk>
Content-Type: multipart/alternative; boundary="----=_Part_334825_1084960713.1345192166738"
X-Spam-Score: -6.899
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 726F361E003 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 17 Aug 2012 04:29:39 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l6TiY1Fa9Sm8 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 17 Aug 2012 04:29:37 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 1A48C24077F for <bug-Wx [...] rt.cpan.org>; Fri, 17 Aug 2012 04:29:36 -0400 (EDT)
Received: (qmail 9160 invoked by uid 103); 17 Aug 2012 08:29:35 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 17 Aug 2012 08:29:35 -0000
Received: from outbound-gw.openxchange.ahost.me (HELO outbound-gw.openxchange.ahost.me) (94.136.40.163) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Fri, 17 Aug 2012 01:29:30 -0700
Received: from localhost ([127.0.0.1] helo=outbound-gw.openxchange.ahost.me) by outbound-gw.openxchange.ahost.me with esmtps (TLSv1:RC4-MD5:128) (Exim 4.63) (envelope-from <stephen.cookson [...] sca-uk.com>) id 1T2Hvq-00077B-Ul; Fri, 17 Aug 2012 09:29:26 +0100
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args
Return-Path: <stephen.cookson [...] sca-uk.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
X-Priority: 3
Date: Fri, 17 Aug 2012 09:29:26 +0100 (BST)
X-Spam-Level:
X-Originating-Ip: 94.197.200.145
To: wxperl-users [...] perl.org, bug-Wx [...] rt.cpan.org
From: "stephen.cookson [...] sca-uk.com" <stephen.cookson [...] sca-uk.com>
RT-Message-ID: <rt-3.8.HEAD-26861-1345192180-1740.79006-0-0 [...] rt.cpan.org>
Content-Length: 0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: utf-8
Content-Length: 2451
Download (untitled) / with headers
text/plain 2.3k
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-Wx@rt.cpan.org> wrote:> Wed Aug 15 22:46:35 2012: Request 79006 was acted upon. Show quoted text
> Transaction: Correspondence added by mark.dootson@znix.com > Queue: Wx > Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: user42@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 user42@zip.com.au > > Queue: Wx > > Subject: RichTextBuffer new() no args > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: user42@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. > > > > > >
> >
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: utf-8
Content-Length: 3979
From gg [...] zip.com.au Tue Aug 21 21: 08:33 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-6.748 tagged_above=-99.9 required=10 tests=[AWL=0.152, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-12395-1345085195-778.79006-6-0 [...] rt.cpan.org> (Mark Dootson via's message of "Wed, 15 Aug 2012 22:46:35 -0400")
X-Spam-Flag: NO
References: <RT-Ticket-79006 [...] rt.cpan.org> <877gszwqv9.fsf [...] blah.blah> <rt-3.8.HEAD-23811-1345081608-768.79006-4-0 [...] rt.cpan.org> <502C5EFC.9040008 [...] znix.com> <rt-3.8.HEAD-12395-1345085195-778.79006-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <87fw7fybqk.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.748
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 55AC624070F for <cpan-bug+Wx [...] hipster.bestpractical.com>; Tue, 21 Aug 2012 21:08:33 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id refasB8BRH81 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Tue, 21 Aug 2012 21:08:31 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DF131240605 for <bug-Wx [...] rt.cpan.org>; Tue, 21 Aug 2012 21:08:29 -0400 (EDT)
Received: (qmail 6788 invoked by uid 103); 22 Aug 2012 01:08:29 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 22 Aug 2012 01:08:29 -0000
Received: from mailout1-16.pacific.net.au (HELO mailout3-syd3.pacific.net.au) (125.255.80.135) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 21 Aug 2012 18:08:26 -0700
Received: from mailproxy4-syd3.pacific.net.au (mailproxy4-syd3.pacific.net.au [61.8.2.162]) by mailout3-syd3.pacific.net.au (Postfix) with ESMTP id E518353B12C for <bug-Wx [...] rt.cpan.org>; Wed, 22 Aug 2012 11:08:22 +1000 (EST)
Received: from blah.blah (unknown [203.26.175.197]) by mailproxy4-syd3.pacific.net.au (Postfix) with ESMTP id 379D52C071 for <bug-Wx [...] rt.cpan.org>; Wed, 22 Aug 2012 11:08:22 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1T3zQx-0004HW-5O for bug-Wx [...] rt.cpan.org; Wed, 22 Aug 2012 11:08:35 +1000
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #79006] RichTextBuffer new() no args
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)
Return-Path: <gg [...] zip.com.au>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
Date: Wed, 22 Aug 2012 11:08:35 +1000
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
RT-Message-ID: <rt-3.8.HEAD-4350-1345597714-1636.79006-0-0 [...] rt.cpan.org>
Content-Length: 701
Download (untitled) / with headers
text/plain 701b
"Mark Dootson via RT" <bug-Wx@rt.cpan.org> writes: Show quoted text
> > 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.
Yes, perhaps. I was experimenting with a Wx::RichTextPrinting which takes a buffer to print out. But my actual code prints the buffer from a RichTextCtrl. Show quoted text
> Note: it isn't quite as simple as just wrapping the method as generally > in the wxWidgets code other classes control wxRichTextBuffer destruction
Ah, ok. I wasn't sure if that sort of thing was supposed to "just work" or if you have to be careful about keeping alive things passed down into the library code etc.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.