RE: Re[2]: [wxperl-users] Wx::PreviewFrame issues

  Hello,

> The Makefile.PL would not run as it reported an error.
> T=
here was a problem with the ext/print/Makefile.PL which was missing the=0D
=
> trailing comma on line 19.
> But after I added that the make process s=
tarted but then I got an error:

  So much for last-minute changes (I f=
orgot to test, $%!^)...
 
> cp lib/Wx/Print.pm ..\..\blib\lib\Wx\Print.=
pm
>         C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  -noprotot=
ypes
> -nolinenumbers  -typemap C:\Perl\lib\ExtUtils\typemap -typemap ..=
\..\typemap
> -typemap typemap  Print.xs > Print.xsc && C:\Perl\bin\perl=
..exe
> -MExtUtils::Command -e mv Print.xsc Print.c
> Warning: #else/eli=
f/endif without #if in this function in perl
> ../../script/xsubppp.pl -=
-typemap ../../typemap.xsp XS/PrintFactory.xsp |,
> line 113
>     (pre=
cede it with a blank line if the matching #if is outside the
> function)=

> Error: OUTPUT #endif not an argument in perl ../../script/xsubppp.pl=0D
=
> --typemap ../../typemap.xsp XS/PrintFactory.xsp |, line 117
> Error: U=
nterminated `#if/#ifdef/#ifndef' in perl ../../script/xsubppp.pl
> --typ=
emap ../../typemap.xsp XS/PrintFactory.xsp |, line 117
> NMAKE : fatal e=
rror U1077: 'C:\Perl\bin\perl.exe' : return code '0x1'

  You can eithe=
r comment the line pulling in PrintFactory.xsp
in ext/print/Print.xs unt=
il I fix the error or try changing PrintFactory.xsp
at the beginning and=
 at the end from:

#if WXPERL_W_VERSION_GE( 2, 5, 4 )

....

#endif=0D
=

to

%{
#if WXPERL_W_VERSION_GE( 2, 5, 4 )
%}

....

%{
#endif=0D
=
%}

Sorry
Mattia
=0A=0A=0A=0A________________________________________=
____________________=0A6X velocizzare la tua navigazione a 56k? 6X Web Ac=
celerator di Libero!=0AScaricalo su INTERNET GRATIS 6X http://www.libero.=
it=0A


0
mattia
3/15/2005 9:10:01 AM
perl.wxperl.users 3070 articles. 0 followers. Follow

6 Replies
357 Views

Similar Articles

[PageSpeed] 54

Hi Mattia,

Ok it compiles fine now and demo runs. I have looked at the Printing.pm demo
and I can see all the new methods in the Preview.xs file and all seem to
work as expected.

This should provide a lot of scope to enhance the previewing/printing
architecture so I will have a look and see what I can do.

Many thanks
Mark 

-----Original Message-----
From: mattia.barbon@libero.it [mailto:mattia.barbon@libero.it] 
Sent: 15 March 2005 11:08 AM
To: mark
Cc: wxperl-users
Subject: RE: Re[2]: [wxperl-users] Wx::PreviewFrame issues

  Hello,

> The Makefile.PL would not run as it reported an error.
> There was a problem with the ext/print/Makefile.PL which was missing the >
trailing comma on line 19.
> But after I added that the make process started but then I got an error:

  So much for last-minute changes (I forgot to test, $%!^)...
 
> cp lib/Wx/Print.pm ..\..\blib\lib\Wx\Print.pm
>         C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  
> -noprototypes -nolinenumbers  -typemap C:\Perl\lib\ExtUtils\typemap 
> -typemap ..\..\typemap -typemap typemap  Print.xs > Print.xsc && 
> C:\Perl\bin\perl.exe -MExtUtils::Command -e mv Print.xsc Print.c
> Warning: #else/elif/endif without #if in this function in perl 
> ../../script/xsubppp.pl --typemap ../../typemap.xsp 
> XS/PrintFactory.xsp |, line 113
>     (precede it with a blank line if the matching #if is outside the
> function)
> Error: OUTPUT #endif not an argument in perl ../../script/xsubppp.pl > 
> --typemap ../../typemap.xsp XS/PrintFactory.xsp |, line 117
> Error: Unterminated `#if/#ifdef/#ifndef' in perl 
> ../../script/xsubppp.pl --typemap ../../typemap.xsp 
> XS/PrintFactory.xsp |, line 117 NMAKE : fatal error U1077:
'C:\Perl\bin\perl.exe' : return code '0x1'

  You can either comment the line pulling in PrintFactory.xsp in
ext/print/Print.xs until I fix the error or try changing PrintFactory.xsp at
the beginning and at the end from:

#if WXPERL_W_VERSION_GE( 2, 5, 4 )

....

#endif
to

%{
#if WXPERL_W_VERSION_GE( 2, 5, 4 )
%}

....

%{
#endif %}

Sorry
Mattia




____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it





0
mark
3/15/2005 10:13:38 AM
Hi,

Something that I have found ... I can do the following:

<snip>
	package PrintingDemoControlBar;
	use base 'Wx::PlPreviewControlBar';
	sub CreateButtons {
	    Wx::LogMessage( 'PrintingDemoControlBar::CreateButtons' );
	    shift->SUPER::CreateButtons;
	}
</snip>

But the following:

<snip>
	package PrintingDemoPreviewFrame;
	use base 'Wx::PlPreviewFrame';
	sub Initialize {
	    shift->SUPER::Initialize( @_ );
	}
	sub CreateControlBar {
	    shift->SUPER::CreateControlBar( @_ );
	}
</snip>

fails with errors :
Can't locate object method "CreateControlBar" via package
PrintingDemoPreviewFrame ...
or
Can't locate object method "Initialize" via package PrintingDemoPreviewFrame
....

Is this my mistake, by design or can this be fixed/changed?

Just when I started getting to understand the XS interface to wxWidgets you
seemed to change the interface. It looks like you are making more use
typemaps and now I am totally lost .. again.

Thanks for your help.

Regards
Mark



0
mark
3/15/2005 1:45:47 PM
On Tue, 15 Mar 2005 15:44:59 +0200 Mark Wardell <mark@netcontrol.co.za> wrote:

  Hello,

> Something that I have found ... I can do the following:
> 
> <snip>
> 	package PrintingDemoControlBar;
> 	use base 'Wx::PlPreviewControlBar';
> 	sub CreateButtons {
> 	    Wx::LogMessage( 'PrintingDemoControlBar::CreateButtons' );
> 	    shift->SUPER::CreateButtons;
> 	}
> </snip>
> 
> But the following:
> 
> <snip>
> 	package PrintingDemoPreviewFrame;
> 	use base 'Wx::PlPreviewFrame';
> 	sub Initialize {
> 	    shift->SUPER::Initialize( @_ );
> 	}
> 	sub CreateControlBar {
> 	    shift->SUPER::CreateControlBar( @_ );
> 	}
> </snip>
> 
> fails with errors :
> Can't locate object method "CreateControlBar" via package
> PrintingDemoPreviewFrame ...
> or
> Can't locate object method "Initialize" via package PrintingDemoPreviewFrame
> ...
> 
> Is this my mistake, by design or can this be fixed/changed?

  Fixed in CVS.

Regards
Mattia


0
mattia
3/15/2005 9:41:14 PM
Hello,

I am not sure when this event was added, but I have been looking at
KILL_FOCUS issues and the entire app losing focus and my event handler's
being called when I do not want them called.

The wx-users newsgroup refers to this event (EVT_CHILD_FOCUS) which looks
like it may help my cause.

Can this please be wrapped?

Thanks
Mark



0
mark
3/17/2005 9:09:05 AM
On Thu, 17 Mar 2005 11:04:54 +0200 Mark Wardell <mark@netcontrol.co.za> wrote:

  Hello,

> I am not sure when this event was added, but I have been looking at

  It is in wxWidgets 2.4.

> KILL_FOCUS issues and the entire app losing focus and my event handler's
> being called when I do not want them called.
 
> The wx-users newsgroup refers to this event (EVT_CHILD_FOCUS) which looks
> like it may help my cause.
> 
> Can this please be wrapped?

  Done!

Regards
Mattia


0
mattia
3/17/2005 9:20:06 PM
Hello Mattia,

Still has same problem compiling on WinXP, missing comma and end of line 19
in file:
C:\Dev\wxPerl\wxPerl\ext\print/Makefile.PL.

Also PrintFactory.xsp is missing the %{ and %} at beggining and end of file.

Regards
Mark



0
mark
3/23/2005 8:05:54 AM
Reply:

Similar Artilces:

RE: Re[2]: [wxperl-users] Wx::PreviewFrame issues #2
Hello, > Something that I have found ... I can do the following: > = > <snip> > package PrintingDemoControlBar; > use base 'Wx::PlPrevie= wControlBar'; > sub CreateButtons { > Wx::LogMessage( 'PrintingDe= moControlBar::CreateButtons' ); > shift->SUPER::CreateButtons; > = } > </snip> > > But the following: > > <snip> > package Printing= DemoPreviewFrame; > use base 'Wx::PlPreviewFrame'; > sub Initialize {= > shift->SUPER::Initialize( @_ ); ...

Re: [wxperl-users] Re: wxperl
yes !! its really time to help more mattia. things i could offer are beside bug reports is to help to buil a better brwosable doku, this is one of my long time wish so are so. herbert "Graciliano M. P." <gmpowers@terra.com.br> schrieb am 11.12.04 03:29:27: > > > hey all, > > > > I just tried downloading the cvs snapshot, Wx-0.20, Wx-0.19, and Wx-0.18 > > and trying to install them on solaris (without luck). I tried both > wxAll-2.4.2 > > and wxWidgets-2.5.3. > > > > Furthermore, I went to the wikis for more in...

RE: [wxperl-users] Re: wxValidator available via wxPerl #2
Dear Mattia, Thanks - this works a treat! I was so close... Anyway, now I'm up and running. I had noticed the 'Attempt to free unreferenced...' error - will await a fix. Now that I've got things working, what do you suggest/would you like? I feel that validators are the way to go when it comes to transferring data to/from controls (rather than explicit GetValue/SetValue calls all over the place) - I have had to implement a similar concept (though not as elegant) in a very large Perl/Tk application which we have developed. I see that you think we should create...

RE: [wxperl-users] Wx::PreviewFrame issues
Hello, > I managed to trap the Tab and Enter key presses by doing th= is but I still > miss the ESCAPE key??? No idea why. AFAIK ESC is o= nly special in dialogs. > I want to override the other methods in the = Wx::PreviewFrame class. I tried > adding the following lines to the file= Preview.xs, but these methods were > still not called. I have seen refe= rence to virtual methods is this one of > those cases? Can they be overr= idden? I have a patch for this; compiles but I have not had time to = test it. I will try to commit it this evening. Ar...

RE: Re: [wxperl-users] Re: Re: EVT_QUERY_END_SESSION
you putted the EVT_CLOSE to the wrong place... or do you have a reason why you need it to be there? $app ist not the window, but you could use EVT_CLOSE on $frame too. i changed your minimal sample that it works. hope it helps greeting Marco ---- use Wx; ########################### package MyApp; use strict; use vars qw(@ISA); @ISA=qw(Wx::App); sub OnInit { my( $this ) = @_; my( $frame ) = MyFrame->new( "Minimal wxPerl app", Wx::Point->new( 50, 50 ), Wx::Size->new( 450, 350 ) ); ...

RE: Re[4]: [wxperl-users] [OT, or maybe not?] wxPerl T-Shirt? #2
Extending this idea, we could have the ASCII art camel on a "green = screen". Then the graphical camel would be shown in three separate = windows below, one in each of the OS flavors (GTK, Win32, Mac OS X). --Toby Ovod-Everett -----Original Message----- From: Ovod-Everett, Toby=20 Sent: Monday, July 28, 2003 10:45 AM To: wxperl-users@lists.sourceforge.net Subject: RE: Re[4]: [wxperl-users] [OT, or maybe not?] wxPerl T-Shirt? What about an ASCII art camel on top (assuming O'Reilly gives a thumbs = up). Then a "use Wx;" Then a very n...

Re:Re[2]: [wxperl-users] Wx::Mozilla -- testers needed!
> Thursday, March 9, 2006, 1:59:44 AM, you wrote: > Dan> I don't -- I built this on Linux. > > Okay, I'll try on Linux, I was just using Windows at the moment (for so= me reason). If it works on Linux then maybe it will build with cygwin. > > Mattia, do you use mingw or MSVC to make the Windows binaries for wxPer= l? MinGW with GCC 3.4. Mattia >>Mattia, do you use mingw or MSVC to make the Windows binaries for wxPerl? >> >> > > MinGW with GCC 3.4. > > You can get a "free" version of MS...

RE: RE: Re: [wxperl-users] Wx::DropTarget -> OnDragOver
yes, i'm using win98 and the wxPerl beta 4. looks like one of them has a bug. right now i've no way to test it on another platform (win2000 or linux) if win98 has a bug, i've to programm this feature myself, so, how can i get if the CONTROL key is pressed? then i can set the $desired myself. greeting Marco >> sorry for the delay, had to do other stuff. >> hope you still remember. >Yes > >> i worked so long on my explanation, but looks like it was still not >> clear enough. well, here with a code example: >Well, it was clear...

Re:[wxperl-users] RE: Another issue with Wx::Grid and derived cell editors
Hello, > I got an error compiling, and had a look but don't really k= now where to look > to begin fixing this, see below: Sorry! Add =0D = WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPlGridCellEditor, wxGridCellEditor );=0D = and WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPlGridCellRenderer, wxGridCellR= enderer ); in ext/grid/cpp/editor.h and ext/grid/cpp/renderer.h. Re= gards Mattia =0A=0A=0A=0A______________________________________________= ______________=0A6X velocizzare la tua navigazione a 56k? 6X Web Accelera= tor di Libero!=0AScaricalo su INTERNET GRATIS 6X http...

RE: Re[2]: [wxperl-users] Building Wx::ActiveX 0.03 on XP
Dear Mattia, Got the solution - it was the lack of nmake all This made and installed the build directory in the correct location. (It was absent before). Could I suggest the readme for wxPerl is updated to tell us to do [dn]make all rather than just=20 [dn]make=20 please? That apart - thanks for your, as usual, great support and help. James -----Original Message----- From: Mattia Barbon [mailto:mbarbon@dsi.unive.it]=20 Sent: 14 April 2003 22:16 To: wxPerl users ML; James Lavery; James Lavery Subject: Re[2]: [wxperl-users] Building Wx::ActiveX 0.03 on XP On Mo...

RE: Re[2]: [wxperl-users] Simple Messagebox . . . Take 2
-----Original Message----- From: Mattia Barbon [mailto:mbarbon@dsi.unive.it] Sent: Saturday, December 07, 2002 4:07 AM To: 'DH'; 'wxperl-users@lists.sourceforge.net'; Everett, Toby Subject: Re[2]: [wxperl-users] Simple Messagebox . . . Take 2 > No, it is designed to be used as a modal dialog. Given that, is there a way to ask for a feature to be added that would let the programmer request that the dialog be brought to the foreground when "ShowModal" is called? I realize that this is probably more of a Wx feature request than a wxPerl feature . . . In m...

RE: RE: RE: RE: [wxperl-users] wxTreeCtrl, edit an treeItem
>>Found a fix ( I hope ); download the modified wx22_9.dll from >>http://wwwstud.dsi.unive.it/~mbarbon/wx/wx22_9.dll.gz >>uncompress it and put it in $PERL/site/lib/auto/Wx >>( make a backup of the original one, of course ). >>This fixes your problem with tree control, but may introduce >>new ones ( it is a fix backported from wxWIndows 2.3 ). >> >>Regards >>Mattia > >hey thanks man! >i had no time to work on my application but i checked the wxwindows >mailinglist archive. you asked for a code change as workaround......

RE: Re[2]: [wxperl-users] ToggleButton
Thank you. -----Original Message----- From: Mattia Barbon [mailto:mbarbon@dsi.unive.it] Sent: Tuesday, February 04, 2003 1:47 PM To: wxPerl users ML; Ismail Mutlu Subject: Re[2]: [wxperl-users] ToggleButton [ please keep replies on-list, thanks! ] On Tue, 4 Feb 2003 13:36:53 -0800 Ismail Mutlu <imutlu@pechanga.com> = wrote: > Hi Mattia, >=20 > Please bear with me as I am new to both wxPErl and OO, but here is = what > I am doing. Well, after looking at the code, you are right, and I am wrong: = GetValue isn't (and can't be inherited). I w...

Re: [wxperl-users] wxPerl on wxX11 ? #2
> --- John Ralls <jralls@ceridwen.fremont.ca.us> wrote: > > > > > On Jul 11, 2006, at 5:31 PM, Sergei Steshenko wrote: > > > > > Hello All, > > > > > > is it possible to compile wxPerl on wxX11 rather than on wxGTK ? > > > > > > If yes, will it be functional ? > > > > > > Thanks, > > > Sergei. > > > > If wxX11 works (which is to say, if you can build it and run some of = > > the samples), then wxPerl will work fine with it. wxPerl doesn't care= ...

Web resources about - RE: Re[2]: [wxperl-users] Wx::PreviewFrame issues - perl.wxperl.users

Resources last updated: 1/2/2016 10:10:03 AM