You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
(7) |
Mar
(5) |
Apr
(4) |
May
(15) |
Jun
(10) |
Jul
(4) |
Aug
(12) |
Sep
(39) |
Oct
(22) |
Nov
(46) |
Dec
(65) |
2002 |
Jan
(19) |
Feb
(27) |
Mar
(50) |
Apr
(73) |
May
(85) |
Jun
(52) |
Jul
(49) |
Aug
(95) |
Sep
(152) |
Oct
(81) |
Nov
(42) |
Dec
(62) |
2003 |
Jan
(45) |
Feb
(47) |
Mar
(101) |
Apr
(110) |
May
(53) |
Jun
(72) |
Jul
(125) |
Aug
(77) |
Sep
(87) |
Oct
(69) |
Nov
(55) |
Dec
(71) |
2004 |
Jan
(127) |
Feb
(68) |
Mar
(93) |
Apr
(102) |
May
(64) |
Jun
(92) |
Jul
(40) |
Aug
(113) |
Sep
(44) |
Oct
(61) |
Nov
(44) |
Dec
(100) |
2005 |
Jan
(57) |
Feb
(51) |
Mar
(101) |
Apr
(73) |
May
(45) |
Jun
(97) |
Jul
(92) |
Aug
(94) |
Sep
(46) |
Oct
(83) |
Nov
(82) |
Dec
(68) |
2006 |
Jan
(92) |
Feb
(116) |
Mar
(84) |
Apr
(66) |
May
(40) |
Jun
(57) |
Jul
(89) |
Aug
(82) |
Sep
(58) |
Oct
(94) |
Nov
(104) |
Dec
(70) |
2007 |
Jan
(86) |
Feb
(108) |
Mar
(193) |
Apr
(84) |
May
(71) |
Jun
(54) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Peter T. <pe...@Pe...> - 2006-08-14 21:59:50
|
<html> <body> <font size=3>I have a TextCtrl with keywords in it. When the user clicks on a keyword I pop up a modal dialog to edit the keyword. For some reason mouse-clicks in the modal dialog box are being sent to the TextCtrl and causing new dialog boxes to pop up on top of the first dialog box. In other words, the dialog is NOT acting MODAL. I am at my *wit's end* trying to figure this out. I have tried both GetTextFromUser() and TextEntryDialog->new() with ShowModal.<br><br> I made a small sample program just to demonstrate this problem:<br> P.S. This TextCtrl cannot be a List because in my real application it does a lot more than in this simple example.<br><br> HELP!<br> -Peter<br><br> #!/usr/bin/perl -w -- <br> use strict;<br> use Wx qw[:everything];<br><br> package main;<br><br> unless(caller){<br> <x-tab> </x-tab>local *Wx::App::OnInit = sub{1};<br> <x-tab> </x-tab>my $app = Wx::App->new();<br> <x-tab> </x-tab>Wx::InitAllImageHandlers();<br><br> <x-tab> </x-tab>my $ui = Test_ui->new();<br><br> <x-tab> </x-tab>$app->SetTopWindow($ui);<br> <x-tab> </x-tab>$ui->Show(1);<br> <x-tab> </x-tab>$app->MainLoop();<br> }<br><br> package Test_ui;<br><br> use Wx qw[:everything :allclasses];<br> use Wx::Event qw(EVT_LEFT_UP);<br><br> our $mainframe;<br> our @keywords=();<br><br> use base qw(Wx::Frame);<br> sub new {<br> <x-tab> </x-tab>my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_;<br> <x-tab> </x-tab>$parent = undef unless defined $parent;<br> <x-tab> </x-tab>$id = -1 unless defined $id;<br> <x-tab> </x-tab>$title = "" unless defined $title;<br> <x-tab> </x-tab>$pos = wxDefaultPosition unless defined $pos;<br> <x-tab> </x-tab>$size = wxDefaultSize unless defined $size;<br> <x-tab> </x-tab>$name = "" unless defined $name;<br> <x-tab> </x-tab>$style = wxDEFAULT_FRAME_STYLE unless defined $style;<br><br> <x-tab> </x-tab>$self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );<br> <x-tab> </x-tab>$mainframe=$self;<br> <x-tab> </x-tab><br> <x-tab> </x-tab>my $main_sizer=Wx::BoxSizer->new(wxVERTICAL);<br><br> <x-tab> </x-tab>$self->{keywords_text} = Wx::TextCtrl->new($self, -1,<br> <x-tab> </x-tab><x-tab> </x-tab>"1. Apples\n2. Bananas\n3. Cherries\n4. Durian",<br> <x-tab> </x-tab><x-tab> </x-tab>wxDefaultPosition, wxDefaultSize,<br> <x-tab> </x-tab><x-tab> </x-tab>wxTE_READONLY|wxTE_MULTILINE|wxTE_DONTWRAP);<br> <x-tab> </x-tab>$main_sizer->Add( $self->{keywords_text}, 1, wxEXPAND|wxALL, 2);<br> <x-tab> </x-tab><br> <x-tab> </x-tab>$self->SetAutoLayout(1);<br> <x-tab> </x-tab>$self->SetSizer($main_sizer);<br> <x-tab> </x-tab>$self->Layout();<br><br> <x-tab> </x-tab>EVT_LEFT_UP( $self->{keywords_text}, \&handle_keywords_left_up);<br><br> <x-tab> </x-tab>$keywords[0]="Apples";<br> <x-tab> </x-tab>$keywords[1]="Bananas";<br> <x-tab> </x-tab>$keywords[2]="Cherries";<br> <x-tab> </x-tab>$keywords[3]="Durian";<br><br> <x-tab> </x-tab>return $self;<br> }<br><br> sub handle_keywords_left_up {<br> <x-tab> </x-tab>my ($self, $event) =@_;<br> <x-tab> </x-tab>my $ip=$self->GetInsertionPoint();<br> <x-tab> </x-tab>my ($col,$row)=$self->PositionToXY($ip);<br> <x-tab> </x-tab>print("editing keyword #$row\n");<br> <x-tab> </x-tab>return unless $keywords[$row];<br> <x-tab> </x-tab>my $newtext=Wx::GetTextFromUser( "Edit keyword $keywords[$row]",<br> <x-tab> </x-tab><x-tab> </x-tab>"Edit keyword $keywords[$row]", $keywords[$row], $mainframe, 0, 0);<br> <x-tab> </x-tab>if ($newtext) {<br> <x-tab> </x-tab><x-tab> </x-tab>$keywords[$row]=$newtext;<br> <x-tab> </x-tab><x-tab> </x-tab>my $keyword_text='';<br> <x-tab> </x-tab><x-tab> </x-tab>my $i=1;<br> <x-tab> </x-tab><x-tab> </x-tab>foreach my $k ( @keywords) {<br> <x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>$keyword_text .= "$i.\t$k\n";<br> <x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab>$i++;<br> <x-tab> </x-tab><x-tab> </x-tab>}<br> <x-tab> </x-tab><x-tab> </x-tab>$mainframe->{keywords_text}->SetValue( $keyword_text);<br> <x-tab> </x-tab>}<br> <x-tab> </x-tab><br> <x-tab> </x-tab>#$event->Skip(1);<br> }<br><br> 1;<br> </font></body> </html> |
From: Mattia B. <mat...@li...> - 2006-08-14 20:12:04
|
Hi all, I am going to split the demo distribution from wxPerl, make it installable from CPAN and include most of what is currently under samples/ inside the demo. As a start I created the wxDemo module in CVS, which is a slightly improved version of the current demo, plus code extracted from the (horrible) control sample. In the next wxPerl release, I will remove the demo/ subdirectory and any samples I was able to assimilate in the demo. In the future I plan to change the look of the demo to be somewhat like the 'widgets' wxWidgets sample: on the right of the sample the control being demonstrated and on the left a series of buttons/checkboxes/... to toggle window styles, change the control's value and perform various operations on it (like in the wxListBox pane, but way more structured). As usual, patches welcome! Regards Mattia |
From: Peter T. <pe...@Pe...> - 2006-08-14 19:09:25
|
<html> <body> <font size=3>(sorry about the bad subject on the previous post attempt...)<br><br> I need to find which word in a multi-line TextCtrl has been right-clicked on.<br> I cannot find any way of doing this.<br><br> I hacked together something nasty to find which word is left-click using the insertion point:<br> <x-tab> </x-tab>my $ip=$self->GetInsertionPoint();<br> <x-tab> </x-tab>my ($px,$py)=$self->PositionToXY($ip);<br> <x-tab> </x-tab>my $clickedline=$self->GetLineText($py);<br> <x-tab> </x-tab>my ($prefix) = substr($clickedline,0,$px) =~ /([\w'`]+)$/;<br> <x-tab> </x-tab>my ($suffix)= substr($clickedline,$px,1000) =~ /^([\w+'`]+)/;<br> <x-tab> </x-tab>my $clickedword=$prefix.$suffix;<br><br> But right-clicking doesn't set the insertion point. I cannot simply use the Y coordinate because I don't know the line-height of the text in the TextCtrl.<br><br> HELP!<br><br> Thanks in advance,<br> -Peter<br> </font></body> </html> |
From: Peter T. <pe...@Pe...> - 2006-08-14 19:05:32
|
<html> <body> <font size=3>I need to find which word in a multi-line TextCtrl has been right-clicked on.<br> I cannot find any way of doing this.<br><br> I hacked together something nasty to find which word is left-click using the insertion point:<br> <x-tab> </x-tab>my $ip=$self->GetInsertionPoint();<br> <x-tab> </x-tab>my ($px,$py)=$self->PositionToXY($ip);<br> <x-tab> </x-tab>my $clickedline=$self->GetLineText($py);<br> <x-tab> </x-tab>my ($prefix) = substr($clickedline,0,$px) =~ /([\w'`]+)$/;<br> <x-tab> </x-tab>my ($suffix)= substr($clickedline,$px,1000) =~ /^([\w+'`]+)/;<br> <x-tab> </x-tab>my $clickedword=$prefix.$suffix;<br><br> But right-clicking doesn't set the insertion point. I cannot simply use the Y coordinate because I don't know the line-height of the text in the TextCtrl.<br><br> HELP!<br><br> Thanks in advance,<br> -Peter<br> </font></body> </html> |
From: herbert b. <dei...@we...> - 2006-08-13 15:18:53
|
ok this o got solved myself: it think nuked a bit my perl distro or it was the 816 buil of AS which caused the problem rhaks for patiente |
From: Mark D. <mar...@zn...> - 2006-08-13 05:57:42
|
All, Replying to my own post again (last time I hope!) attached diff and the example at http://www.gigi.co.uk/wxperl/HtmlEasyPrinting.zip have been tested and appear to work against the following two environments on Win32: Wx-0.55 and wxWidgets-2.6.3 Wx-0.56cvs and wxWidgets-2.7.0 Hope it proves useful. Regards Mark |
From: Mark D. <mar...@zn...> - 2006-08-12 22:55:18
|
Apologies for replying to my own post, but I just downloaded wxWidgets 2.7.0, which changes the interface for wxHtmlDCRenderer. :-( But at least the re-ordering of params fixes some of the problems I had :-) I'll fix the diff and my pure perl modules and re-post. Regards Mark Mark Dootson wrote: > Mattia, > > I wrapped wxHtmlDCRenderer for my own use. > > A diff is attached, with a couple of simple additions to wxHtmlWindow > and WxHtmlEasyPrinting. > > My C / XS skills are limited so its all copy and paste really. > The only thing I had difficulty with was > > wxHtmlDCRenderer::Render > > This takes an optional reference to an array. I'm not sure if I've > handled the 'optional' part correctly. > > In connection with this, I also have extended perl versions of > HtmlPrintout and HtmlEasyPrinting. > > Why bother? Well, I wanted to be able to override some methods and > control the appearance and controls on the preview frame but not lose > the 'Easy' aspects. > It will allow me to create simple reporting applications using html > templating systems for the output. > > A 'minimal' sample of this is at > http://www.gigi.co.uk/wxperl/HtmlEasyPrinting.zip. > > This uses wxHtmlDCRenderer. > > Regards > > Mark > > > > > > > > > ------------------------------------------------------------------------ > > Changes are: > > For wxHtmlDCRenderer > > 1. Wrapped wxHtmlDCRenderer > 2. Necessary include added to Html.xs > 3. Necessary addition to typemap > > A couple of unrelated chanages that appeared in diff > > 4. Added SetFonts to wxHtmlEasyPrinting > 5. Added LoadFile to wxHtmlWindow (just because its in the docs - I know LoadPage is equivalent) > > > diff -ruN Wx-0.55/ext/html/Html.xs Wx-0.55b/ext/html/Html.xs > --- Wx-0.55/ext/html/Html.xs > +++ Wx-0.55b/ext/html/Html.xs > @@ -27,6 +27,7 @@ > #if wxPERL_USE_PRINTING_ARCHITECTURE > > INCLUDE: XS/HtmlEasyPrinting.xs > +INCLUDE: XS/HtmlDCRenderer.xs > > #endif > > diff -ruN Wx-0.55/ext/html/typemap Wx-0.55b/ext/html/typemap > --- Wx-0.55/ext/html/typemap > +++ Wx-0.55b/ext/html/typemap > @@ -21,6 +21,7 @@ > wxBestHelpController * O_WXOBJECT > > wxHtmlEasyPrinting * O_NON_WXOBJECT > +wxHtmlDCRenderer * O_NON_WXOBJECT > > wxPrintData * O_WXOBJECT > wxPageSetupDialogData * O_WXOBJECT > diff -ruN Wx-0.55/ext/html/XS/HtmlEasyPrinting.xs Wx-0.55b/ext/html/XS/HtmlEasyPrinting.xs > --- Wx-0.55/ext/html/XS/HtmlEasyPrinting.xs > +++ Wx-0.55b/ext/html/XS/HtmlEasyPrinting.xs > @@ -67,6 +67,23 @@ > int pg > > void > +wxHtmlEasyPrinting::SetFonts( normal_face, fixed_face, sizes ) > + wxString normal_face > + wxString fixed_face > + SV* sizes > + PREINIT: > + int* array; > + int n = wxPli_av_2_intarray( aTHX_ sizes, &array ); > + CODE: > + if( n != 7 ) > + { > + delete[] array; > + croak( "Specified %d sizes, 7 wanted", n ); > + } > + THIS->SetFonts( normal_face, fixed_face, array ); > + delete[] array; > + > +void > wxHtmlEasyPrinting::SetFooter( header, pg = wxPAGE_ALL ) > wxString header > int pg > diff -ruN Wx-0.55/ext/html/XS/HtmlDCRenderer.xs Wx-0.55b/ext/html/XS/HtmlDCRenderer.xs > --- Wx-0.55/ext/html/XS/HtmlDCRenderer.xs > +++ Wx-0.55b/ext/html/XS/HtmlDCRenderer.xs > @@ -0,0 +1,79 @@ > +############################################################################# > +## Name: ext/html/XS/HtmlDCRenderer.xs > +## Purpose: XS for Wx::HtmlDCRenderer > +## > +############################################################################# > + > + > +#include <wx/html/htmprint.h> > +#include <wx/dc.h> > + > +MODULE=Wx PACKAGE=Wx::HtmlDCRenderer > + > +wxHtmlDCRenderer* > +wxHtmlDCRenderer::new() > + > +void > +wxHtmlDCRenderer::DESTROY() > + > +void > +wxHtmlDCRenderer::SetDC( dc, pixel_scale = 1.0 ) > + wxDC* dc > + double pixel_scale > + > +void > +wxHtmlDCRenderer::SetSize(width, height) > + int width > + int height > + > +void > +wxHtmlDCRenderer::SetHtmlText( htmlText, basepath = wxEmptyString, isdir = 1 ) > + wxString htmlText > + wxString basepath > + bool isdir > + > +void > +wxHtmlDCRenderer::SetFonts( normal_face, fixed_face, sizes ) > + wxString normal_face > + wxString fixed_face > + SV* sizes > + PREINIT: > + int* array; > + int n = wxPli_av_2_intarray( aTHX_ sizes, &array ); > + CODE: > + if( n != 7 ) > + { > + delete[] array; > + croak( "Specified %d sizes, 7 wanted", n ); > + } > + THIS->SetFonts( normal_face, fixed_face, array ); > + delete[] array; > + > +int > +wxHtmlDCRenderer::Render(x, y, from = 0, dont_render = 0, maxHeight = INT_MAX, pagebreaks, number_of_pages = 0) > + int x > + int y > + int from > + int dont_render > + int maxHeight > + SV* pagebreaks > + int number_of_pages > + PREINIT: > + int* array; > + int n = wxPli_av_2_intarray( aTHX_ pagebreaks, &array ); > + CODE: > + if( n == 0 ) > + { > + RETVAL = THIS->Render( x, y, from, dont_render, maxHeight, NULL, number_of_pages); > + } > + else > + { > + RETVAL = THIS->Render( x, y, from, dont_render, maxHeight, array, number_of_pages); > + } > + delete[] array; > + OUTPUT: > + RETVAL > + > + > +int > +wxHtmlDCRenderer::GetTotalHeight() > > diff -ruN Wx-0.55/ext/html/XS/HtmlWindow.xs Wx-0.55b/ext/html/XS/HtmlWindow.xs > --- Wx-0.55/ext/html/XS/HtmlWindow.xs > +++ Wx-0.55b/ext/html/XS/HtmlWindow.xs > @@ -86,6 +86,10 @@ > wxHtmlWindow::HistoryForward() > > bool > +wxHtmlWindow::LoadFile( filename ) > + wxString filename > + > +bool > wxHtmlWindow::LoadPage( location ) > wxString location > > > End of Patch. > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Arron J. <che...@ac...> - 2006-08-12 22:17:57
|
Minimize your monthly rent.mort payments by more than 500 bucks. We will beat your current, below is the average we've given all year. $553,000.00 at 3.95% int. http://url123.com/5xqmr |
From: Mattia B. <mat...@li...> - 2006-08-12 20:54:29
|
Hi all, I just uploaded to CPAN a nontrivial (and non complex) example of using wxPerl with Perl threads. As a side effect it also lets you play Mastermind. Regards Mattia Begin forwarded message: Date: Sat, 12 Aug 2006 22:49:10 +0200 From: PAUSE <up...@pa...> To: "Mattia Barbon" <mat...@li...> Subject: CPAN Upload: M/MB/MBARBON/Wx-App-Mastermind-0.01.tar.gz The uploaded file Wx-App-Mastermind-0.01.tar.gz has entered CPAN as file: $CPAN/authors/id/M/MB/MBARBON/Wx-App-Mastermind-0.01.tar.gz size: 6969 bytes md5: 5e0fe78279399d9cadc4191837a05623 No action is required on your part Request entered by: MBARBON (Mattia Barbon) Request entered on: Sat, 12 Aug 2006 20:48:24 GMT Request completed: Sat, 12 Aug 2006 20:49:10 GMT Thanks, -- paused, v782 |
From: herbert b. <dei...@we...> - 2006-08-12 19:05:33
|
some tools that run fine under 0.24 now do not return from system calls and the wx app freezes. i also could not update to 0.54 because test do fail with comments like: Use of uninitialized value in numeric ge (>=) at C:/Programme/Code/Perl/cpan/build/Wx-0.56/build/Wx/build/MakeMaker/Win32_MSVC.pm line 25. maybe ms nmakes fault but i think ireturn for a while to 0.24 where system call did go. sincerly herbert proton-ce.sf.net |
From: Mark D. <mar...@zn...> - 2006-08-12 17:29:12
|
Mattia, I wrapped wxHtmlDCRenderer for my own use. A diff is attached, with a couple of simple additions to wxHtmlWindow and WxHtmlEasyPrinting. My C / XS skills are limited so its all copy and paste really. The only thing I had difficulty with was wxHtmlDCRenderer::Render This takes an optional reference to an array. I'm not sure if I've handled the 'optional' part correctly. In connection with this, I also have extended perl versions of HtmlPrintout and HtmlEasyPrinting. Why bother? Well, I wanted to be able to override some methods and control the appearance and controls on the preview frame but not lose the 'Easy' aspects. It will allow me to create simple reporting applications using html templating systems for the output. A 'minimal' sample of this is at http://www.gigi.co.uk/wxperl/HtmlEasyPrinting.zip. This uses wxHtmlDCRenderer. Regards Mark |
From: Mattia B. <mat...@li...> - 2006-08-11 20:37:32
|
On Tue, 08 Aug 2006 00:24:38 +0100 Mark Dootson <mar...@zn...> wrote: Hi, > Having said that, I would not choose 2 if that option represented much > more work than 1 or 3. It is somewhat more work, so I went for option 1 (quick and effective). Implementing a different solution is still possible, even for single classes. In addition to that, as Dan notes, some wxWidgets methods internally call functions in the underlying GUI toolkit, so event if the interaction with a cloned object is safe at the C++ level, it might not be at the GUI level, so option 1 is really the safest. > I assume we are only concerned with the listed object types and that Yes. > with any of the options, the following code in a secondary thread would > still work (I'm concerned about using Wx::Window::FindWindowById in the > context shown below) > > my $WINDOW_ID = (the ID of a window in my main gui thread); > my $window = Wx::Window::FindWindowById($WINDOW_ID, undef); > my $newevent = Wx::PlThreadEvent->new( -1, $MY_EVENT_ID, $sharedvar ); > Wx::PostEvent( $window, $newevent ); Well, this is not exactly the case I am discussing, since the objects in this example are not clones of the ones in the main thread; anyway using Wx::PostEvent will most definitely work in any wxPerl/threads scenario. Thanks to you and Dan for your input Mattia |
From: Mattia B. <mat...@li...> - 2006-08-11 20:09:59
|
On Fri, 11 Aug 2006 12:29:08 -0400 Ed Heil <ed...@do...> wrote: Hi. do not use MSYS, just plain old MinGW. Make sure to install the native mingw32-make.exe. - Unpack Alien::wxWidgets somewhere. - copy the wxWidgets archive to that directory (or let A::wx download it) - perl Build.PL - yes: you want to build wxWidgets! let Alien do it for you unless you *really* know you do not want to - specify the correct extension for the archive (tar.gz works for me even under Windows) - perl Build - perl Build install - unpack wxPerl - perl Makefile.PL - nmake - nmake install Report any failure here. It can work inside CPAN, but first make sure you are able to build a simple XS module from CPAN, to check your setup is sane. HTH Mattia |
From: Mark D. <mar...@zn...> - 2006-08-11 17:23:31
|
Ed, I think you need to build wxWidgets in the native environment - NOT under MSYS. As far as I am aware, you won't be able to build anything for ActivePerl under MSYS. Apparantly, the native mingw should work just fine. I'm sure Mattia will be able to give you correct instructions when he next replies to the list. It should be simple with Alien::wxWidgets. But I'm sure you are wasting your time compiling under MSYS. Regards Mark Ed Heil wrote: > Hullo! > > I've decided that I am going to start working with home-compiled > versions of wxwidgets and wxperl, so that when I ask about a bug and > Mattia says "fix is in CVS" I can go get that fix. > > I've got a mingw/msys system together. I compiled wxWidgets using it > and confirmed the samples worked on a testbed "clean install" of Win > XP. (I followed the steps here: > http://jupiter.dnsalias.net/howto/wxWidgets/wxWidgets_MinGW.jsp ) > > Now I'd like to roll me up some wxPerl. > > I'm using ActiveState perl 5.8.8 build 817 (the latest stable version > from activestate). > > My mingw is configured to see that perl in its PATH as /perl/bin/perl. > > I'm not exactly sure where to go from here. My next step would be to > install Alien-wxWidgets I guess. I can't get the cpan shell working > from within my msys environment. It says "Set up gcc environment" and > hangs. So I downloaded the tarball of Alien-wxWidgets in my msys home > directory. > > I ran perl Build.pl and said "no" I don't want to build wxWidgets. (I > already built it, and wx-config is in my path). It created a Build > script, which gave me some of the following output (apologies for its > incompleteness -- I haven't yet figured out how to cut and paste from a > msys window!) -- > > Build: blib\lib\Alien\wxWidgets.pm: cannot resolve L<Alien> in paragraph 8. > > (some more stuff that doesn't look like errors, then...) > > Configuration error: could not find libraries for this configuration at > inc/My/Build/Win32.pm line 63. > > > Hmmm, I thought. I'll try saying I *do* want to build the toolkit. I > removed the unpacked tarball and unpacked it again, and this time said > "yes" to the "Do you want to build WxWidgets?" question. > > I ran the build script and ended up with the exact same "cannot resolve > L<Alien> in paragraph 8" and then a "Fetch failed! 404 not found " > trying to fetch \pub\2.6.3\wxWidgets-2.6.3.yes from > biolpc22.york.ac.uk' It then printed "Fetching wxWidgets..." and quit. > > I'm going to go back, for now, to the pre-Alien version of wxPerl, but I > would like to find out how to do this right. I am very new to > msys/mingw, but things have gone very well except for the Alien business. > > > > > I ran it again and said "yes" I want to build it. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: <an...@fr...> - 2006-08-11 17:13:37
|
Ed Heil wrote: > Hullo! > > I've decided that I am going to start working with home-compiled > versions of wxwidgets and wxperl, so that when I ask about a bug and > Mattia says "fix is in CVS" I can go get that fix. > > I've got a mingw/msys system together. I compiled wxWidgets using it > and confirmed the samples worked on a testbed "clean install" of Win > XP. (I followed the steps here: > http://jupiter.dnsalias.net/howto/wxWidgets/wxWidgets_MinGW.jsp ) > > Now I'd like to roll me up some wxPerl. > > I'm using ActiveState perl 5.8.8 build 817 (the latest stable version > from activestate). > > My mingw is configured to see that perl in its PATH as /perl/bin/perl. > > I'm not exactly sure where to go from here. My next step would be to > install Alien-wxWidgets I guess. I can't get the cpan shell working > from within my msys environment. It says "Set up gcc environment" and > hangs. So I downloaded the tarball of Alien-wxWidgets in my msys home > directory. > > I ran perl Build.pl and said "no" I don't want to build wxWidgets. (I > already built it, and wx-config is in my path). It created a Build > script, which gave me some of the following output (apologies for its > incompleteness -- I haven't yet figured out how to cut and paste from a > msys window!) -- > > Build: blib\lib\Alien\wxWidgets.pm: cannot resolve L<Alien> in paragraph 8. > > (some more stuff that doesn't look like errors, then...) > > Configuration error: could not find libraries for this configuration at > inc/My/Build/Win32.pm line 63. > Have you tried to build with mingw? May I ask how did you do that? > > Hmmm, I thought. I'll try saying I *do* want to build the toolkit. I > removed the unpacked tarball and unpacked it again, and this time said > "yes" to the "Do you want to build WxWidgets?" question. > > I ran the build script and ended up with the exact same "cannot resolve > L<Alien> in paragraph 8" and then a "Fetch failed! 404 not found " > trying to fetch \pub\2.6.3\wxWidgets-2.6.3.yes from > biolpc22.york.ac.uk' It then printed "Fetching wxWidgets..." and quit. > > I'm going to go back, for now, to the pre-Alien version of wxPerl, but I > would like to find out how to do this right. I am very new to > msys/mingw, but things have gone very well except for the Alien business. > > > > > I ran it again and said "yes" I want to build it. > > > > Hi! You seem to be doing the same as I do. I have tried to compile it as you do. As I see there are several ways to go. I have spent a day on it and I have found out couple of things. I don't have a complete solution but someone may be able to finish it. These may work. 1. Compile WxWidgets in its own and make an entry for it in perl\site\lib\Alien\wxWidgets\Config\ and build/make Wx. I have tried this but I am stuck because the makefile.pl does not seem to be able to find the new mingw configuration. 2. Do as you do. I downloaded Visual C++ Studio Express 2005 and set up the path like this before calling cpan.bat set path=C:\WINXP\system32;c:\Program Files\Microsoft Visual Studio 8\vc\bin;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;d:\m\perl\bin\; set INCLUDE=<Microsoft Platform SDK>\Include;C:\Programs\Microsoft Platform SDK\Include\crt set LIB=<Microsoft Platform SDK>\lib;C:\Program Files\Microsoft Visual Studio 8\VC\lib then ,, "install M/MB/MBARBON/Alien-wxWidgets-0.19.tar.gz" Then I built it That was ok... but the generated dlls did not run properly... 3. There is a install guide here http://search.cpan.org/~mbarbon/Wx-0.55/docs/INSTALL.pod It looks simple... For mingw, it says set WXDIR=z:\path\to\wx set WXWIN=z:\path\to\wx cd z:\path\to\wx\src\msw make -f makefile.g95 FINAL=1 WXMAKINGDLL=1 cd %WXDIR%\contrib\src\stc make -f makefile.g95 FINAL=1 WXUSINGDLL=1 cd %WXDIR%\contrib\src\xrc make -f makefile.g95 FINAL=1 WXUSINGDLL=1 # now build wxPerl # get dmake from http://www.cpan.org/authors/id/GSAR/dmake-4.1pl1-win32.zip perl Makefile.PL dmake dmake test I tried that too but it failed at perl Makefile.PL because it was trying to use CL configuration given by Alien::Widgets. The problem is Alien::Widgets knows only CL...?? I don!t know how to make it use gcc configuration, I can see the code is there, I have not managed to activate it.. Maybe if Alien::Widgets were removed.. Regards Márton Papp |
From: Ed H. <ed...@do...> - 2006-08-11 16:29:14
|
Hullo! I've decided that I am going to start working with home-compiled versions of wxwidgets and wxperl, so that when I ask about a bug and Mattia says "fix is in CVS" I can go get that fix. I've got a mingw/msys system together. I compiled wxWidgets using it and confirmed the samples worked on a testbed "clean install" of Win XP. (I followed the steps here: http://jupiter.dnsalias.net/howto/wxWidgets/wxWidgets_MinGW.jsp ) Now I'd like to roll me up some wxPerl. I'm using ActiveState perl 5.8.8 build 817 (the latest stable version from activestate). My mingw is configured to see that perl in its PATH as /perl/bin/perl. I'm not exactly sure where to go from here. My next step would be to install Alien-wxWidgets I guess. I can't get the cpan shell working from within my msys environment. It says "Set up gcc environment" and hangs. So I downloaded the tarball of Alien-wxWidgets in my msys home directory. I ran perl Build.pl and said "no" I don't want to build wxWidgets. (I already built it, and wx-config is in my path). It created a Build script, which gave me some of the following output (apologies for its incompleteness -- I haven't yet figured out how to cut and paste from a msys window!) -- Build: blib\lib\Alien\wxWidgets.pm: cannot resolve L<Alien> in paragraph 8. (some more stuff that doesn't look like errors, then...) Configuration error: could not find libraries for this configuration at inc/My/Build/Win32.pm line 63. Hmmm, I thought. I'll try saying I *do* want to build the toolkit. I removed the unpacked tarball and unpacked it again, and this time said "yes" to the "Do you want to build WxWidgets?" question. I ran the build script and ended up with the exact same "cannot resolve L<Alien> in paragraph 8" and then a "Fetch failed! 404 not found " trying to fetch \pub\2.6.3\wxWidgets-2.6.3.yes from biolpc22.york.ac.uk' It then printed "Fetching wxWidgets..." and quit. I'm going to go back, for now, to the pre-Alien version of wxPerl, but I would like to find out how to do this right. I am very new to msys/mingw, but things have gone very well except for the Alien business. I ran it again and said "yes" I want to build it. |
From: Mike S. <Mik...@Do...> - 2006-08-10 23:22:02
|
Mike Schroeder wrote: > Perl Error > Can't load > '/Users/username/Desktop/PerlWrapper.app/Contents/Resources/Perl-Libraries/auto/Wx/Wx.bundle' > > for module Wx: > dlopen(/Users/username/Desktop/PerlWrapper.app/Contents/Resources/Perl-Libraries/auto/Wx/Wx.bundle,1): > Library not loaded: /Library/Perl > > > So two issues I could use some advice on: > 1) Suggestions on the "Library not loaded" error? > > OK - this is over my head, but I did a little digging and found this: http://developer.apple.com/documentation/Darwin/Reference/Manpages/man3/dlopen.3.html Mac OS X 10.3 incorporated the dlcompat package written by Jorge Acereda <jac...@us...> and Peter O'Gorman <ogor- ma...@us...>. In Mac OS X 10.4, dlopen was rewritten to be a native part of dyld. And in turn this: http://developer.apple.com/releasenotes/DeveloperTools/dyld.html Am I on the right track? Does this provide any clues to anyone? |
From: <an...@fr...> - 2006-08-10 10:49:06
|
an...@fr... wrote: > Hi! > > I get this new error at this line: Wx::AcceleratorTable->new( [ > wxACCEL_CTRL, 'B', $wid{match} ] ); > where $wid{match} has some value 444. > Note this worked for me in the past using Perl.5.6.1 > I have just migrated to Perl 5.8.8.. > I installed M/MB/MBARBON/Wx-0.55.tar.gz using CPAN module... > I did get an error while I did so. > All tests successful, 1 test and 16 subtests skipped. > Files=15, Tests=583, 6 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) > Can't find string terminator "'" anywhere before EOF at -e line 1. > NMAKE : fatal error U1077: 'D:\m\perl\bin\perl.exe' : return code '0x2' > > which I decided to ignore and install wxperl in the command line. > I typed make install... > That worked but when I ran my application I got the error above... > > I wonder what is wrong.. > I also got a similar error running the sample program controls.pl.... > Thanks for help in advance.. > > Note I also installed Alien::Widgets and also got various errors running > the demo.pl. > For dynamic html example, I got > 00:50:37: Error: Failed to load shared library > 'D:/m/perl/site/lib/Alien/wxWidgets/msw_2_6_3_cl_0/lib/wxbase26_xml_vc_custom.dll' > Despite of that fact, that I installed Alien/wxWidgets properly as far > as I could see.. > > > Regards > > Márton Papp > > > I found a solution to the first problem. When I replaced 'B' in Wx::AcceleratorTable->new( [ wxACCEL_CTRL, 'B', $wid{match} ] ); with ord('B')... It works as intended. Márton Papp |
From: Mike S. <Mik...@Do...> - 2006-08-10 05:35:23
|
Some progress: 1) I got the PerlWrapper basic example that uses Mac::Applescript working using the instructions from: http://sourceforge.net/mailarchive/message.php?msg_id=12580886 Results: a) it works fine on a clean Intel-based machine b) the clean PPC machine showed the icon with a slash through it, and when trying to run, it nicely gave a dialog about the application not able to run on this architecture --apparently setting the xCode to Universal did not work. 2) I next worked on a wxMinimal example for Intel building off of the previous Intel success. a) copied the /usr/local/lib/libwx* files into the xCode Libraries directory b) ran the Tools/update_dylib_references.pl c) copied the Wx Perl files and auto/Wx files into the Perl-Libraries directory Results: a) the built app ran correctly on the build machine b) tried the app on the clean Intel machine and got this error: Perl Error Can't load '/Users/username/Desktop/PerlWrapper.app/Contents/Resources/Perl-Libraries/auto/Wx/Wx.bundle' for module Wx: dlopen(/Users/username/Desktop/PerlWrapper.app/Contents/Resources/Perl-Libraries/auto/Wx/Wx.bundle,1): Library not loaded: /Library/Perl So two issues I could use some advice on: 1) Suggestions on the "Library not loaded" error? 2) Suggestions on making a Universal PerlWrapper? Thanks in advance for any help! |
From: <an...@fr...> - 2006-08-09 23:37:33
|
Hi! I get this new error at this line: Wx::AcceleratorTable->new( [ wxACCEL_CTRL, 'B', $wid{match} ] ); where $wid{match} has some value 444. Note this worked for me in the past using Perl.5.6.1 I have just migrated to Perl 5.8.8.. I installed M/MB/MBARBON/Wx-0.55.tar.gz using CPAN module... I did get an error while I did so. All tests successful, 1 test and 16 subtests skipped. Files=15, Tests=583, 6 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Can't find string terminator "'" anywhere before EOF at -e line 1. NMAKE : fatal error U1077: 'D:\m\perl\bin\perl.exe' : return code '0x2' which I decided to ignore and install wxperl in the command line. I typed make install... That worked but when I ran my application I got the error above... I wonder what is wrong.. I also got a similar error running the sample program controls.pl.... Thanks for help in advance.. Note I also installed Alien::Widgets and also got various errors running the demo.pl. For dynamic html example, I got 00:50:37: Error: Failed to load shared library 'D:/m/perl/site/lib/Alien/wxWidgets/msw_2_6_3_cl_0/lib/wxbase26_xml_vc_custom.dll' Despite of that fact, that I installed Alien/wxWidgets properly as far as I could see.. Regards Márton Papp |
From: herbert b. <dei...@we...> - 2006-08-09 20:25:36
|
even when its derived from WxControlWithItems check this please thanks herbert kepher.sf.net |
From: Mike S. <Mik...@Do...> - 2006-08-09 01:01:45
|
Your wedding or an open source project?? Where are your priorities man?!?! :) I went and bought another mac mini, so I now have Intel and PPC versions of OS X 1.4.7 running "clean" and suitable as test beds for apps built with PerlWrapper. Does anyone have the wxPerl minimal.pl as a test of PerlWrapper? Or an xcode project using wxPerl 0.26+ ? I think most of my problems were stemming from wxPerl 0.22 being preinstalled now in OS X in /usr, but the WxPerl 0.26+ stuff all seems to install into /usr/local/ -- and my wxPerl startup was getting confused. If no one has an existing minimal.pl with PerlWrapper, I'll see what I can do, and get some debug output for the list to review. Thanks again. And congratulations on your wedding Christian... :) Mike. Christian Renz wrote: > Hi all, > > Mike -- sorry for not replying to your request earlier. I was quite > busy with my wedding and am only now recovering from it :-). I'm > definitely interested in getting PerlWrapper to work on Panther (and > Leopard, as soon as I have access to that). Anyone experiencing > problems with PerlWrapper on Panther, please contact me. > > Regards, > Christian > > |
From: Christian R. <cre...@we...> - 2006-08-08 23:36:27
|
Hi all, Mike -- sorry for not replying to your request earlier. I was quite busy with my wedding and am only now recovering from it :-). I'm definitely interested in getting PerlWrapper to work on Panther (and Leopard, as soon as I have access to that). Anyone experiencing problems with PerlWrapper on Panther, please contact me. Regards, Christian -- cr...@we... - http://christian.web42.com - http://www.web42.com/crenz/ "I expect a good deal of the problem is that you are busy disbelieving a different God than the one I am busy believing in. In theological discussions more than any other kind, it's easy to talk at right angles and never even realize it." -- Larry Wall |
From: Mark D. <mar...@zn...> - 2006-08-07 23:26:57
|
Hi, I think 2 - cloning the C++ objects is probably just about the best option. I can imagine the possibility of a situation where it might be of some use for a thread to get a copy of a parent object and go to work on that in the background. Having said that, I would not choose 2 if that option represented much more work than 1 or 3. As there's no clear obvious choice, I think whichever option is easiest for you to implement. I assume we are only concerned with the listed object types and that with any of the options, the following code in a secondary thread would still work (I'm concerned about using Wx::Window::FindWindowById in the context shown below) my $WINDOW_ID = (the ID of a window in my main gui thread); my $window = Wx::Window::FindWindowById($WINDOW_ID, undef); my $newevent = Wx::PlThreadEvent->new( -1, $MY_EVENT_ID, $sharedvar ); Wx::PostEvent( $window, $newevent ); Regards Mark Mattia Barbon wrote: > Hi all, > the topic is abviously threads. This program: > > ========== > #!/usr/bin/perl -w > > use strict; > use warnings; > use threads; > use Test::More tests => 4; > > use Wx; > > my $app = Wx::App->new( sub { 1 } ); > my $color = Wx::Colour->new( 0, 10, 20 ); > > use Devel::Peek; > > my $t = threads->create > ( sub { > ok( 1, 'In thread' ); > } ); > ok( 1, 'Before join' ); > $t->join; > ok( 1, 'After join' ); > > END { ok( 1, 'At END' ) }; > ========= > > crashes after test 3 (after join). The reason is that when the thread is > started the perl-space variables are cloned, but the C++-space objects > are not, so bot threads think they hold the last reference to $color, > both try to free the underlying C++ object => segmentation fault. > > There are various way to work around this; all involve keeping tracks > of created objects (Wx::Colour instances in this case) and doing something > special at clone time. This solves the problem once you decide what > special action you want to take. > > Options: > 1 - the new thread is denied access to the parent thread objects > (tried and works; you should not access wxThings from multiple > threads anyway) > 2 - clone the C++ instances; for each variable do (more or less) > $var = Wx::Colour->new( $var ); > 3 - give the new thread access to the original thread's C++ objects > avoiding the double free (i.e. do what happens now, except for the > segfault). > 4 - other options? > > Any suggestions? > > Thanks! > Mattia > > The list of classes needing special treatment is: > Wx::DataObject > Wx::DropTarget > Wx::FileSystem > Wx::FSFile > Wx::GridCellAttr > Wx::GridCellAttr > Wx::GridCellEditor > Wx::GridCellRenderer > Wx::HtmlEasyPrinting > Wx::Printer > Wx::XmlResource > Wx::Accelerators > Wx::Bitmap > Wx::Brush > Wx::Cursor > Wx::Font > Wx::Icon > Wx::Image > Wx::ImageList > Wx::Locale > Wx::Palette > Wx::Pen > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Mike S. <Mik...@Do...> - 2006-08-07 20:49:30
|
Mattia Barbon wrote: > On Mon, 07 Aug 2006 12:24:17 -0600 > Mike Schroeder <Mik...@Do...> wrote: > >> We have gone through several variations (PAR, PerlWrapper) of installers >> for the OS X version of our wxPerl app in the pre-Intel days, but we are >> having problems getting a working installer for Intel OS X 10.4.7 (which >> now comes with wxPerl 0.22, but our app wants a more current version, >> and we get weird path conflicts). >> > > Stupid question: do the path conflicts appear with the same (which?) > wxPerl version on PPC OS X 10.4.7? I guess not (or it would be too simple) > but asking does not hurt :-) > :-( Wish I knew -- we had a PPC 10.3.x build environment, but dropped that to move to a Intel 10.4.7 build environment. At this point, we're targeting the Intel platform since that seems to be the future -- a PPC build is bonus round at this point... |