[rt.cpan.org #114552] Unescaped left brace in regex is illegal in regex

2017-05-20 Thread Mark Dootson via RT
Sat May 20 08:08:57 2017: Request 114552 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Unescaped left brace in regex is illegal in regex Broken in: 0.9928 Severity: (no value) Owner: Nobody Requestors: sre...@cpan.org Status: open

[rt.cpan.org #121224] key codes are not valid for older Wx versions

2017-04-17 Thread Mark Dootson via RT
Tue Apr 18 02:49:58 2017: Request 121224 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: key codes are not valid for older Wx versions Broken in: 0.9931 Severity: (no value) Owner: Nobody Requestors: tcall...@redhat.com Status: new

[rt.cpan.org #103235] Support for TreeListCtrl->EnsureVisible(item)

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 07:50:43 2017: Request 103235 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Support for TreeListCtrl->EnsureVisible(item) Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: ro...@metsci.com Status: ope

[rt.cpan.org #115097] libwx-perl: Use of the encoding pragma is deprecated

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 07:47:43 2017: Request 115097 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: libwx-perl: Use of the encoding pragma is deprecated Broken in: 0.9928 Severity: (no value) Owner: Nobody Requestors: cho...@cpan.org, gre...@cpan.or

[rt.cpan.org #119059]

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 07:45:44 2017: Request 119059 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: (No subject given) Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: prbre...@cpan.org Status: new Ticket https://rt.cpan.o

[rt.cpan.org #120657] Wx_Exp.pm incomplete due to race/missing dependency in Makefile

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 07:40:29 2017: Request 120657 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Wx_Exp.pm incomplete due to race/missing dependency in Makefile Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: stefan.bru...@rw

[rt.cpan.org #120139] support wxScrolledWindow::ShowScrollbars for wxWidgets >= 2.9.0

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 06:55:27 2017: Request 120139 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: support wxScrolledWindow::ShowScrollbars for wxWidgets >= 2.9.0 Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: st...@stccg.at

[rt.cpan.org #120933] 0.9928: test hangs on t/14_eh_die.t on Strawberry Perl 5.24.1.1 (64bit) Windows 10

2017-04-17 Thread Mark Dootson via RT
Mon Apr 17 06:53:06 2017: Request 120933 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: 0.9928: test hangs on t/14_eh_die.t on Strawberry Perl 5.24.1.1 (64bit) Windows 10 Broken in: 0.9928 Severity: (no value) Owner: Nobody Requestors:

Maintaining Wx and Alien::wxWidgets

2017-04-05 Thread Mark Dootson
Hi, If there is anyone on the list who has perhaps contributed code patches or work in the past and is interested in taking on maintenance of the modules, please contact me. There are no other maintainers who contribute code at present. Regards Mark

Re: Wxperl.com, net and org domain names

2017-04-05 Thread Mark Dootson
All. It has been an interesting several years working on Wx. I hope a few of you gained benefit from my work. Johan has been for some time promoting the idea that Wx has been abandoned. I'm not sure why. But I'm somewhat tired of it. Therefore I now feel that it is time that someone else t

Re: Wxperl.com, net and org domain names

2017-04-05 Thread Mark Dootson
I'll maintain wxperl.it as I'm currently maintaining Wx. On 05/04/2017 18:33, Johan Vromans wrote: On Tue, 17 Jan 2017 23:08:21 -0500, David Kaufman wrote: And I've set myself a calendar reminder to remember to not forget to send you the authcodes in March :-) I assume transfer has taken pl

Re: Compatible versions of wxWidgets

2017-03-25 Thread Mark Dootson
<mailto:bubn...@gmail.com>> wrote: I am using 3.0.3-beta1 on Windows / Linux / OSX, as it support some new flags for instantiating an OpenGL widget, namely it supports anti-aliasing. 3.1 introduced many changes in the definition of the base classes (ints replaced by enums and such), which br

Re: Compatible versions of wxWidgets

2017-02-24 Thread Mark Dootson
Hi, No, wiki is out of date. Current stable release of wxWidgets is 3.0.2. On 24/02/2017 14:31, Ron Grunwald via wxperl-users wrote: Hello all, The FAQ on the wxPerl wiki (http://wiki.wxperl.nl/index.php?title=FAQ) states that the current stable release of wxWidgets to use with wxPerl is 2.8

Re: wxPerl crashes on Windows when installed into a localized path

2017-02-16 Thread Mark Dootson
Hi, I think you can fix it for Wx at least by expanding the BEGIN block at the top of slicr3.pl to include the following. In the Wx case, the loading fails because you cannot add a wide character string to $ENV{PATH}. The snippet assumes you are actually using 'msw_3_0_2_uni_gcc_3_4' flavour o

Re: NewFromPNGData

2016-03-24 Thread Mark Dootson
Not anywhere I can test this at the moment but as I recall: open my $fh, '<', \$buffer; my $bitmap = Wx::Bitmap->new( Wx::Image->new( $fh, wxBITMAP_TYPE_PNG) ); On 24/03/2016 10:44, James Lynes wrote: Hello All: It seems that Wx::Bitmap NewFromPNGData is not wrapped(didn't see any ref

Re: Wx 0.9928 Released

2016-01-04 Thread Mark Dootson
haven't tested the fix yet, but I assume it works, could you explain please why this caused an error? Regards, Steve. On 20/12/15 18:26, Mark Dootson wrote: Hi, Wx 0.9928 has been released to CPAN. This fixes a Wx::Timer memory leak. Regards Mark

Re: Future of wxperl.it

2016-01-04 Thread Mark Dootson
Hi All. I hadn't intended letting wxperl.it (the only domain under my control) lapse nor had I intended abandoning wxPerl updates or patches. However, whatever you would all like to do / happen with domains and the wxPerl Perl modules and the wxperl.it site that is differrent to what happen

Wx 0.9928 Released

2015-12-20 Thread Mark Dootson
Hi, Wx 0.9928 has been released to CPAN. This fixes a Wx::Timer memory leak. Regards Mark

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Mark Dootson
is out too much until I have fixed the Wx::TimerEvent SV leak problem. Mark On 21/05/2015 14:50, Mark Dootson wrote: Hi Steve, $app->Yield does not cause 'idle time' to happen - so 'Destroyed' objects are not cleaned up during that call. As you have seen, on multiple

Re: Wx::Perl seems to be leaking memory

2015-05-21 Thread Mark Dootson
Hi Steve, $app->Yield does not cause 'idle time' to happen - so 'Destroyed' objects are not cleaned up during that call. As you have seen, on multiple calls the total number of SVs does not increase so no memeroy leak there. However, in constructing an example to demonstrate this I think I m

Re: Wx::Perl seems to be leaking memory

2015-05-11 Thread Mark Dootson
with children or indeed a tree of descendants. Or does it just mean the application main frame? And if a whole tree goes out of scope simultaneously, eg controls in sizers on panels within panels in a dialog, is it enough to Destroy the dialog? Thanks again, Regards, Steve. On 11/05/15 1

Re: Wx::Perl seems to be leaking memory

2015-05-11 Thread Mark Dootson
Hi, See http://docs.wxwidgets.org/3.0/classwx_window.html#a6bf0c5be864544d9ce0560087667b7fc details for wxWindow::Destroy. As you have determined, top level windows you create need to be destroyed with $win->Destroy; The C++ structure for a Wx::Frame contains a reference to the associated

[rt.cpan.org #99325] DLLs not stripped under Windows

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:33:16 2015: Request 99325 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Alien-wxWidgets Subject: DLLs not stripped under Windows Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: ralf.neuba...@wido.bv.aok.de S

[rt.cpan.org #78355] Build Issues

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:11:41 2015: Request 78355 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Build Issues Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: mmun...@gmail.com Status: stalled Ticket https://rt.cpan.org/

[rt.cpan.org #101449] Possible bug in Wx::

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:08:03 2015: Request 101449 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Possible bug in Wx:: Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: d...@optusnet.com.au Status: new Ticket https://rt.c

[rt.cpan.org #102269] Makefile.PL dies because of change in Getopt::Long: Option spec <> cannot be used with pass_through

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:05:19 2015: Request 102269 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Makefile.PL dies because of change in Getopt::Long: Option spec <> cannot be used with pass_through Broken in: (no value) Severity: (no value) Owner:

[rt.cpan.org #102387] support ChangeValue in ComboBox.xs

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:04:12 2015: Request 102387 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: support ChangeValue in ComboBox.xs Broken in: (no value) Severity: Important Owner: Nobody Requestors: e...@ecocode.net Status: new Ticket htt

[rt.cpan.org #103129] build failure with wx 2.8 on Ubuntu 14.04: wxComboBox has no member RemoveSelection

2015-03-26 Thread Mark Dootson via RT
Thu Mar 26 15:00:31 2015: Request 103129 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: build failure with wx 2.8 on Ubuntu 14.04: wxComboBox has no member RemoveSelection Broken in: 0.9926 Severity: Critical Owner: MDOOTSON Requestors:

New CPAN versions of Wx and Alien-wxWidgets released

2015-03-10 Thread Mark Dootson
All, New versions of Wx and Alien-wxWidgets have been uploaded to CPAN. http://www.wxperl.it/ It has been a while. Thanks to all who contributed over the past year. Regards Mark

Re: Future of wxperl.it

2015-01-05 Thread mark . dootson
gt; valuable resource to me. /Alex > > On Mon, Jan 5, 2015 at 9:21 AM, Johan Vromans wrote: > >> Hi, >> >> On 2013-03-03, Mark Dootson allocated wxperl.it [1] to function as the >> starting >> point of all wxPerl related web information. He choose a .it d

[rt.cpan.org #94519] t/14_eh_die.t hangs (Win64bit/gcc-4.8.2/perl-5.9.10)

2014-10-29 Thread Mark Dootson via RT
Wed Oct 29 15:41:30 2014: Request 94519 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: t/14_eh_die.t hangs (Win64bit/gcc-4.8.2/perl-5.9.10) Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: k...@cpan.org Status:

[rt.cpan.org #99607] Issue using wxTextEntryBox

2014-10-27 Thread Mark Dootson via RT
Mon Oct 27 15:05:08 2014: Request 99607 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Issue using wxTextEntryBox Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: pwnbusiness2...@centurylink.net Status: open Ti

Re: Wx::Event::EVT_AUINOTEBOOK_BEGIN_DRAG stopped workind

2014-09-16 Thread mark . dootson
Hi, A fix for this committed to SVN. Release probably at the weekend as I have a lot of other Wx things to catch up on. Regards Mark On 2014-09-13 12:56, herbert breunung wrote: > thank you very much for your efforts i bookmark that link. > please let me know when there will be some ch

Moving to wxWidgets 3.0 as the standard install.

2013-10-07 Thread Mark Dootson
Hi All, I'll be playing catch up over the next few weeks with all things Wx but I wanted to give the earliest possible notice of a change to the default version of wxWidgets that will be compiled under Alien::wxWidgets. The first release candidate for wxWidgets 3.0 is out today and I'd expect

Re: Bug in printing under Windows

2013-07-03 Thread Mark Dootson
Hi, The 'error' in the wxperl_demo is in the 'OnPrintPage' method. This should return a true value. For correct operation in Windows just return a true value from this method. GetPageInfo works fine on all platforms as far as I am aware. Regards Mark On 03/07/2013 08:01, Arpad Szasz wrote

Re: how to useMemoryFileHandler ?

2013-06-28 Thread Mark Dootson
Hi, I think your solution is to use the newFromXPM methods. my $bitmap = Wx::Bitmap->newFromXPM( \@xpmdata ); my $icon = Wx::Icon->newFromXPM( \@xpmdata ); @xpmdata is just an array of xpm strings - so one array element per line if the xmp data is from a file. Given some inline xpm data su

Re: Simple Line Graphs

2013-06-28 Thread Mark Dootson
Hi James, On 24/06/2013 20:23, James Lynes wrote: Should be easy to pull the generated file into a PaintDC if you don't want to launch an outboard file viewer. I may or may not get to that. I added a simple viewer to your code by: 1. changing your Graph method a little 2. adding display classe

Re: how to useMemoryFileHandler ?

2013-06-28 Thread Mark Dootson
Hi Herbert, On 26/06/2013 18:11, herbert breunung wrote: greetings comrads I have seen the XRC custom example in Wx::Demo and did Wx::MemoryFSHandler::AddTextFile( 'file.xpm', <<'EOB' ); my $ed = Wx::TextCtrl->new($frame, -1,''); $ed->LoadFile('memory:fi

Re: Finding the selected text in a ComboBox

2013-06-27 Thread Mark Dootson
Hi, On 28/06/2013 05:34, Ian Macdonald wrote: Hi Mark, Thanks for the info. So in 2.8, there's no way of getting this for the moment? Ian Sorry, no. It isn't implemented for 2.8 or 2.9 and I don't see any other way of getting a selected range from the wxTextCtrl. Regards Mark

Re: Finding the selected text in a ComboBox

2013-06-27 Thread Mark Dootson
Hi, wxComboBox::GetSelection isn't wrapped at all - you are just getting the result from the inherited method wxControlWithItems::GetSelection. I'm not sure why the wxWidgets 2.9.x docs have a wxPerl note saying this is wrapped. Wx 0.9923 with this fixed coming soon. (Code is in SVN but as

Re: Fw: Is Wx::DateTime fully implemented in WxPerl?

2013-06-22 Thread Mark Dootson
Hi, First and foremost, the date parsing methods are not implemented in the wxPerl for the 2.9.x branch of wxWidgets. This is because the API for these methods changed completely from the 2.8 branch to the 2.9 branch. When the 2.9 branch was first created, the code you quoted was added to wxP

Re: Wx::Notebook drag and drop freezes tab in Linux.

2013-06-18 Thread Mark Dootson
Hi, I've tested a pre-built 2.8.12 wxWidgets against 12.04 LTS - and I don't see this problem. I'll get around to building 2.8.11 and test that at some point. Regards Mark On 17/06/2013 14:01, steveco.1...@gmail.com wrote: Hi Mark, I've tested wxWidgets 2.9.4 and wxWidgets 2.8.12 on Fedo

Re: Fwd: Wx::PlValidator: It seems it doesn't return GetWindow correctly

2013-06-18 Thread Mark Dootson
Hi, On 17/06/2013 08:22, Helen Craigman wrote: But, When I go, according to your suggestion: $panel2->InitDialog; It bumps with: "Can't locate object method "InitDialog" via package "Wx::Panel" at" ... etc. Should I add something? Indeed you are right. The InitDialog method is missing from wx

Re: Wx::Notebook drag and drop freezes tab in Linux.

2013-06-16 Thread Mark Dootson
Hi Steve, I can't repeat this. I've tested wxWidgets 2.9.4 and wxWidgets 2.8.12 on Fedora 17 32 bit. What is your Linux distro / wxWidgets version / Wx version? I am a bit surprised I can't repeat it as there are plenty of reports on the wxWidgets bug list for wxAUI concerning tab focus / mous

Re: Fwd: Wx::PlValidator: It seems it doesn't return GetWindow correctly

2013-06-16 Thread Mark Dootson
my $this = shift; $this->GetWindow->SetValue( ${$this->{var_r}} ); 1;# Signale que tout va bien } # end sub TransferToWindow 1; # end package MyValidator;#--- end package MyValidator package main;# -- package main:: use stri

Re: Wx::PlValidator: It seems it doesn't return GetWindow correctly

2013-06-15 Thread Mark Dootson
Hi, On 15/06/2013 22:23, Helen Craigman wrote: Dear esteemed WxPerl experts and users: I have been trying to incorprate a validator on a TextCtrl widget, using PlValidator (following this: .. This gives the error: "Can't call method "SetValue" on an undefined value at..." etc. As far as

Re: [rt.cpan.org #85943] utf8 handling bug

2013-06-07 Thread Mark Dootson via RT
Fri Jun 07 09:44:56 2013: Request 85943 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: Re: [rt.cpan.org #85943] utf8 handling bug Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: j...@pavlovsky.eu Status: new T

Re: Threads

2013-05-31 Thread Mark Dootson
Hi Johan, Would it be possible to extract and post an example of code that core dumps? I'd like to check if this is a Wx problem that can be fixed. Regards Mark On 31/05/2013 09:14, Johan Vromans wrote: Hi, I'm trying to use threads from a Wx program. Unfortunately, the only results I get

Re: How to find the event type in wxPerl?

2013-05-28 Thread Mark Dootson
Hi, I'm still stuck with the idea that you are attempting to solve some problem using the wrong approach. I don't see the absence of a typeid function as any problem at all. Creating an event that does not reflect the state of the object that receives it seems utterly pointless to me. If a

Re: wx-perl and Mac OS X

2013-05-28 Thread Mark Dootson
Hi, You must build wxWidgets with Alien::wxWidgets. wxWidgets 2.9.4 is broken as far as wxPerl usage is concerned and must be patched. Regards Mark On 28/05/2013 19:11, Frank Schima wrote: Hello, I'm trying to get wx-perl working on Mac OS X via Macports. I have created ports for p5-wx an

Re: CitrusPerl and wxperl_demo.pl Segmentation fault.

2013-05-27 Thread Mark Dootson
Hi, From the installation instructions: Setup for wxWidgets and OpenGL wxWidgets and OpenGL rely on some runtime packages being present on your system. For the Wx::Demo and OpenGL alone you will require the freeglut libraries on your system. For yum / rpm based systems run: yum install fre

Fwd: Re: Trying to trigger wxEVT_TREELIST_ITEM_CHECKED programmatically: not implemented?

2013-05-24 Thread Mark Dootson
Hi, On 24/05/2013 11:19, Helen Craigman wrote: Hi Mark In my code, I do use the CheckItem method, and that's working fine. The issue is, after I change the item check state, the event handler for EVT_TREELIST_ITEM_CHECKED does not get triggered, Yes, this particular event is only triggered

Re: Trying to trigger wxEVT_TREELIST_ITEM_CHECKED programmatically: not implemented?

2013-05-24 Thread Mark Dootson
Hi Helen, On 24/05/2013 04:43, Helen Craigman wrote: Hi wxPerl-users I am using wxPerl with wxWidgets 2.9.5. I am using TreeListCtrl, and need to implement triggering EVT_COMMAND_TREELIST_ITEM_CHECKED programmatically. In Wx we don't change state of anything by raising events. To change s

Re: Strawberry Perl 5.16.3 with wxWidgets 2.9.4 and wxPerl latest

2013-05-12 Thread Mark Dootson
Hi, Building Wx for Strawberry is V simple. I've no idea why HelenCr is having problems. Anyhow, I have been through the process of building with Strawberry, found that it works perfectly ok - and posted to Perl Monks. Cheers Mark On 11/05/2013 22:42, James Lynes wrote: Thanks Johan. I h

Re: wxString and UTF-8, utf8 etc etc etc again

2013-05-02 Thread Mark Dootson
Hi, On 02/05/2013 10:34, Johan Vromans wrote: The question is: do we consider wxWidgets to be 'external world'. That answer is most likely 'yes'. But more important: do we consider wxPerl to be 'external world'? I'd say 'no'. Therefore, what I'd expect to pass to a wxPerl routine is a string in

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
Hi, On 01/05/2013 20:14, Octavian Rasnita wrote: Yep, good to know. It would be nice if WxPerl would announce somehow that a font doesn't have the necessary glifs (maybe with a warning). Nice to have, but there is no reasonable and practical implementation I can think of. I am aware of how t

Re: wxString and UTF-8, utf8 etc etc etc again

2013-05-01 Thread Mark Dootson
Hi, On 02/05/2013 00:17, Steve Cookson wrote: Or just sub libDecode ($$){ return decode(@_); } At least all the things that might go wrong will all be here. You're unduly worried ( probably my fault ). my $string = decode($encoding, $binary); Is fine. Cheers Mark

wxString and UTF-8, utf8 etc etc etc again

2013-05-01 Thread Mark Dootson
Hi, perldoc for the module Encode says: - CAVEAT: When you run $string = decode("utf8", $octets) , then $string might not be equal to $octets. Though both contain the same data, the UTF8 flag for $string is on unless $octets c

Re: Wx >= 0.9918 build errors because of missing typemap

2013-05-01 Thread Mark Dootson
Hi, Indeed there are some missing specs in the typemap template. Strange that yours is the only report where this bug manifests itself ( that is, 'make' decides the typemap needs to be rebuilt. ) Anyhow, attached patch for 0.9921 fixes it. There are a few other things I wish to complete befo

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
ana' which seems to be the font Microsoft forgot. Regards Mark On 01/05/2013 17:35, Mark Dootson wrote: Hi, On 01/05/2013 15:21, Octavian Rasnita wrote: Thank you Mark! Now the chars are displayed fine. Too bad that I need to use Windows... BTW, what happends if this program runs und

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
Hi, On 01/05/2013 15:21, Octavian Rasnita wrote: Thank you Mark! Now the chars are displayed fine. Too bad that I need to use Windows... BTW, what happends if this program runs under Linux or Mac? Will WxPerl use another sans-serif font available under these platforms? Yes - a similar font c

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
Hi, On 01/05/2013 16:49, steveco.1...@gmail.com wrote: Well all this just serves to deepen my confusion. 1) What is the difference between: $line = decode( 'UTF-8', $orig ); and $line = decode( 'utf8', $orig ); Always use decode( 'UTF-8', $orig ); 'UTF-8' means what it says. In my opini

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
th decode() and I set the font to "Arial".) The new test file is at: http://maestrodex.ro/static/test3.zip --Octavian - Original Message - From: "Mark Dootson" To: "Octavian Rasnita" Cc: ; Sent: Tuesday, April 30, 2013 10:43 PM Subject: Re: Can we print UTF

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread Mark Dootson
Hi, On 01/05/2013 07:34, Johan Vromans wrote: Mark Dootson writes: On 30/04/2013 19:19, Johan Vromans wrote: We may assume that the Perl string is in Perl's internal encoding. No we may not. In that case you'll run into all kinds of encoding problems anyway. If you attempt

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Mark Dootson
n command line and I've seen that the special char "ț" appears as 2 chars, so I think the char is added well in DB. --Octavian - Original Message - From: "Mark Dootson" To: ; Sent: Monday, April 29, 2013 4:32 PM Subject: Re: Can we print UTF-8 chars in Wx::T

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Mark Dootson
On 30/04/2013 19:19, Johan Vromans wrote: We may assume that the Perl string is in Perl's internal encoding. No we may not. AFAIK, when a buffer contains valid UTF-8 (e.g., as result of an earlier decode), utf8::upgrade is a no-op. Not necessarily. See perldoc for decode and UTF-8 string

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Mark Dootson
Hi, On 30/04/2013 15:38, Johan Vromans wrote: 2. This data is the current default format fro wxWidgets. Which I understand it may work if you're lucky. I am of the opinion that this bit ( WXSTRING_INPUT ) already works as well as it can do if given an SV and no other params. I certainly w

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-30 Thread Mark Dootson
Hi, On 30/04/2013 06:55, Johan Vromans wrote: Mark Dootson writes: Hi, On 29/04/2013 20:06, Johan Vromans wrote: I'd say this is the wrong approach. The solution is to adjust the WXSTRING_PUT macro to check for the utf8 flag and handle accordingly. That's exactly what it do

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Mark Dootson
Hi, On 29/04/2013 20:06, Johan Vromans wrote: I'd say this is the wrong approach. The solution is to adjust the WXSTRING_PUT macro to check for the utf8 flag and handle accordingly. -- Johan That's exactly what it does, unless I've misunderstood. Regards Mark

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Mark Dootson
Hi, On 29/04/2013 15:04, steveco.1...@gmail.com wrote: So you are saying that if I change $var = decode("utf8",$row->{ATT_BOOKING_COMMENT_TXT}) ; to $var = decode("utf8",$row->{ATT_BOOKING_COMMENT_TXT}) ; utf8::upgrade($var ); it will be more resilient and cater for

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Mark Dootson
Hi, A Perl scalar has a character buffer to store character or byte data. This data can be interpreted and stored by Perl in one of two formats: 1. Perl's internal data format 2. A number octets (bytes) representing a UTF-8 encoded string. Internally it is just a memory buffer. Each scalar ha

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Mark Dootson
Hi, If your Perl scalar contains UTF-8 encoded text and is marked as such, then you shouldn't need any decoding functions. (Well, that is how it is supposed to work. If it doesn't, it is a bug). So, yes - if your scalars contain UTF-8 encoded text and are marked as such, that's all you shoul

Re: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread Mark Dootson
I would guess you are working on Windows? wxVSCROLL isn't in the list of styles available for wxTextCtrl. It isn't needed. Remove it and all works OK. It seems you can get away with it on Linux - but not on Windows. For the Wx::Font you can just do my $font = Wx::Font->new( $FontSize}, wxFO

Re: ComboBox and utf8

2013-04-28 Thread Mark Dootson
Hi, Where a wxWidgets method expects a wxString, the translation from the Perl SV to a wxString uses the same code throughout the entire library. As part of the translation, wxPerl checks if the SV you pass has the utf8 flag set. The problem just might be that DBD::Pg is not returning what

Re: Alien::wxWidgets fails on 5.16.3 OSX 10.7

2013-04-24 Thread Mark Dootson
Hi, The WiKi instructions are for forcing a 32 bit carbon build of wxWidgets 2.8.12. They worked with XCode up to around 4.3 I think but some extras are required for latest XCode. So, assuming you want to stick with your 32 bit Perl and wxWidgets 2.8.12 you need to build Alien::wxWidgets fro

Re: [rt.cpan.org #84634] old version of wxWidgets

2013-04-16 Thread Mark Dootson via RT
Tue Apr 16 03:53:01 2013: Request 84634 was acted upon. Transaction: Correspondence added by mark.doot...@znix.com Queue: Alien-wxWidgets Subject: Re: [rt.cpan.org #84634] old version of wxWidgets Broken in: 0.64 Severity: Wishlist Owner: Nobody Requestors: cho...@cpan.o

Re: [rt.cpan.org #84633] typo in message

2013-04-15 Thread Mark Dootson via RT
Mon Apr 15 20:16:26 2013: Request 84633 was acted upon. Transaction: Correspondence added by mark.doot...@znix.com Queue: Wx Subject: Re: [rt.cpan.org #84633] typo in message Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: cho...@cpan.org Statu

Wx 0.9921 Released

2013-04-15 Thread Mark Dootson
After ironing out some differences for IPC in platforms, wxWidgets version and bitness, 0.9919 became 0.9921. http://www.wxperl.it/2013/04/wx-09921-released.html Regards Mark

Wx-0.9919 Released with IPC support

2013-04-14 Thread Mark Dootson
Hi, Wx-0.9919 has been uploaded to CPAN with the addition of support for the Inter Process Communication classes wxServer, wxClient and wxConnection. It is implemented using DDE on Windows and sockets on other platforms. You can use UNIX sockets or INET sockets on none Windows platforms - but

Re: Is Wx::RegionIterator available?

2013-04-09 Thread Mark Dootson
Hi, On 09/04/2013 14:26, Ian Macdonald wrote: FYI, I'm trying to refresh just a portion of my panel via EVT_PAINT, and this is what the docs recommend. No, wxRegionIterator isn't available. I'll be releasing a new version of Wx in the next 24 hrs with this included. I've done a fair amount

Re: Wx test failures on OSX Lion [SOLVED]

2013-04-08 Thread Mark Dootson
Hi On 08/04/2013 04:57, Wallace Winfrey wrote: On Thu, Apr 4, 2013 at 2:07 PM, Mark Dootson wrote: Google harder :-) Are you referring to this thread? http://www.nntp.perl.org/group/perl.wxperl.users/2012/02/msg8353.html If so, I should have mentioned I had read it. I had also read this

Re: Wx test failures on OSX Lion

2013-04-04 Thread Mark Dootson
Hi, On 04/04/2013 20:43, Wallace Winfrey wrote: I am trying to build Wx 0.9918 with my perlbrew-managed 5.16.2 (w/threads) install, and I get the following failures during the test. Is there something I'm missing? The Google was unhelpful in assisting me in my search for resolution. Google har

[rt.cpan.org #84435] no matching function for call to wxFontEnumerator::GetEncodings

2013-04-04 Thread Mark Dootson via RT
Thu Apr 04 15:01:29 2013: Request 84435 was acted upon. Transaction: Correspondence added by MDOOTSON Queue: Wx Subject: no matching function for call to wxFontEnumerator::GetEncodings Broken in: 0.9918 Severity: Normal Owner: Nobody Requestors: cho...@cpan.org Sta

Wx 0.9918 Released to CPAN

2013-04-04 Thread Mark Dootson
Hi, Wx 0.9918 has been released and all binary distributions updated. http://www.wxperl.it/2013/04/wx-09918-released.html Cheers Mark

Re: use Wx 0.15 qw[:allclasses]; etc

2013-04-03 Thread Mark Dootson
Hi, On 03/04/2013 17:00, Steve Cookson wrote: Question 1: Does it really need two "use strict"s, clearly you can never have enough, but doesn't the first one have a greater scope than the second is not necessary. I imagine in is just template code for a package that gets you the extra strict

Re: Wx::DatePickerCtrl display issue.

2013-04-02 Thread Mark Dootson
Hi, This is just an implementation detail. If you set the style flag wxDP_ALLOWNONE (as the wxperl_demo does ) then you will get the check box in Windows. There has to be a way for you to indicate 'no date' and using the native Windows control this would seem to be the only way. On Linux, th

Sending Documents to The Printer

2013-03-29 Thread Mark Dootson
Hi, I've been trawling Google for references to wxPdfDocument to check on general questions / development as I have not looked at it in a while. I found a post asking how to send a pdf file directly to the printer, rather than opening it. If your operating system supports associating documen

Re: Formatting the Column Headers of a ListCtrl

2013-03-28 Thread Mark Dootson
Hi, It isn't implemented in wxWidgets - probably because the library attempts to either use the native platform controls or mimic them as closely as possible. If you cannot do it with a native control, you most likely can't do it in wxWidgets. I doubt this is seen as a missing feature so you'

Re: Update to wxPerl Web Site

2013-03-07 Thread Mark Dootson
Hi, On 08/03/2013 07:32, Johan Vromans wrote: Mark Dootson writes: wxPerl has also started tweeting notifications and updates as @wxPerl Is it possible (an irssi plugin?) to inject these tweets into the wxperl irc? -- Johan I have no idea but will investigate in due course. Hopefully

Re: Update to wxPerl Web Site

2013-03-07 Thread Mark Dootson
Hi, On 07/03/2013 22:42, steveco.1...@gmail.com wrote: Is this now the wxPerl main homepage? Yes it is. Existing links should redirect there OK. I hope to post useful stuff regularly. wxPerl has also started tweeting notifications and updates as @wxPerl :-) Regards Mark

Update to wxPerl Web Site

2013-03-07 Thread Mark Dootson
All, I've updated the wxPerl web site links to a new site as explained here: http://www.wxperl.it/2013/03/wxperl-online-pages-update.html This makes it much simpler for me to update the site regularly. As noted in the post above, the old pages have not gone away and can be accessed at http:

Re: Getting information from EVT_LIST_ITEM_RIGHT_CLICK

2013-03-05 Thread Mark Dootson
Oops! Attached updated code uses ListCtrl->GetItemRect to determine correct offset when control is scrolled. Cheers Mark On 05/03/2013 20:14, Dave Hayes wrote: On 02/04/13 19:45, Mark Dootson wrote: Hi, A small update to previous code. On wxGTK EVT_LIST_ITEM_RIGHT_CLICK events

SVN Repository Change

2013-03-04 Thread Mark Dootson
All, Yesterday I upgraded the sourceforge tools to the current versions. An unexpected effect of this was that the URLs for the repository changed. The web site has been updated with the new URLs but for info the new command to checkout for example the wxPerl trunk to wxperl-trunk is svn co

Re: CitrusPerl release 5.16.1

2013-02-28 Thread Mark Dootson
Hi, On 28/02/2013 09:36, Johan Vromans wrote: Mark Dootson writes: Citrus Perl downloads are back with the release of Citrus Perl 5.16.1. Any plans for 5.16.2? I was waiting around for Perl 5.18 - but I suppose that may be a few months away. I'll look at re-rolling Citrus and al

Re: SetTextColor on Wx::MenuItem?

2013-02-27 Thread Mark Dootson
Hi, Are you on Windows? SetTextColour is only available on wxMSW. Assuming the code below is not a direct copy paste, are you sure you're using SetTextColour and not SetTextColor Regards Mark On 27/02/2013 23:15, Dave Hayes wrote: This is odd... $ perl use Wx qw(:everything); my

Re: Wx Test Failures with 2.9.4 on Strawberry Perl

2013-02-26 Thread Mark Dootson
Hi, On 22/02/2013 12:32, Smylers wrote: If I compile Wx using Strawberry 5.14.3, should that module then work if deployed to something still on 5.14.2.1? I think you may encounter problems. I'm almost certain that the libgcc and libstdc++ that your Wx/wxWidgets will need to load cannot coexi

Re: Wx Test Failures with 2.9.4 on Strawberry Perl

2013-02-21 Thread Mark Dootson
Hi, You need a more recent Strawberry. 5.14.2.1 (November 2011) as included with DWIM Perl contains a gcc tool chain that is not compatible with Wx / wxWidgets 2.9.x builds. 5.14.3 (October 2012) onwards or any 5.16 Strawberry release are compatible. I'm sure the issue is to do with C++ exce

Re: Modality and new windows

2013-02-15 Thread Mark Dootson
Hi, I should just add regarding Wx::PlComboPopup usage, the C++ class wxComboPopup has the protected member m_combo that allows you to access the wxComboCtrl. In wxPerl that is available via: $cmbpopup->GetComboCtrl; I should add a line using that to the demo. Cheers Mark

Re: Modality and new windows

2013-02-15 Thread Mark Dootson
Hi, On 15/02/2013 19:59, Dave Hayes wrote: 1) Apparently Wx::ComboCtrl does not respect or use wxTE_PROCESS_TAB. Why? That's a decision of wxWidgets designers / maintainers. It seems sensible to me as a combo box that captures tab key presses would be quite an odd thing. Best roll your own

Re: Any views on locale handling and wxWidgets > 2.9.0

2013-02-05 Thread Mark Dootson
Hi, On 05/02/2013 17:19, Tarek Unger wrote: Greetings, i personally think this is a good approach. A simple "use Wx;" anywhere in the code should *not* change the behavior of a complete separate codepart. I think I'll release Wx 0.9917 with this change in. Is it possible to change the overr

  1   2   3   4   5   6   >