XRC LoadFrame and size

2009-03-18 Thread Alexander

Hello!

I'm Windows user WxWidgets. (Wx Version: 0.9 wxWidgets 2.8.9)

I have problem with XRC LoadFrame.
I found sample(that i add to attachment ) and try change size of frame.
It looks like XMLResorce ignore size tag in xrc for Frame.

How set size of frame in XRC?

Sorry for my English.


http://www.wxwindows.org/wxxrc"; version="2.3.0.1">

wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL
800,600


wxVERTICAL

0
wxALL
5

wxTE_MULTILINE|wxTE_READONLY
300,150

0



1
wxEXPAND
5

wxHORIZONTAL

1
wxEXPAND
5
0,0


0
wxALL
5

Button 1
0



0
wxALL
5

Button 2
0







package MyApp;

our $VERSION = '1.2.3.4';

use Wx qw(:everything);
use Wx::XRC;

use base 'Wx::App';

sub OnInit
{
  my $self = shift;

  my $xr = Wx::XmlResource->new();
  $xr->InitAllHandlers();
  $xr->Load('test.xrc');

  my $frame = Wx::Frame->new;
  $xr->LoadFrame($frame, undef, 'MyFrame1');
  $frame->Show(1);
}

package main;
MyApp->new->MainLoop;


Re: XRC LoadFrame and size

2009-03-18 Thread Alexander

herbert breunung write:

if in your XRC is something like:


wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL
500,131

then there should be no problem, at least i have none :)


But i have problem. :)
size could't change.
x:318
y:194
Maybe my code is not good.

#test.pl
package MyApp;

use Wx qw(:everything);
use Wx::XRC;

use base 'Wx::App';

sub OnInit
{
 my $self = shift;

 my $xr = Wx::XmlResource->new();
 $xr->InitAllHandlers();
 $xr->Load('test.xrc');

 my $frame = Wx::Frame->new;
 $xr->LoadFrame($frame, undef, 'MyFrame1');
   print "x:".$frame->GetSize()->GetWidth()."\n";
   print "y:".$frame->GetSize()->GetHeight()."\n";
  
 $frame->Show(1);

}
package main;
MyApp->new->MainLoop;


#test.xrc

   
   wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL
   1000,500
   
   
   wxVERTICAL
   
   0
   wxALL
   5
   
   wxTE_MULTILINE|wxTE_READONLY
   300,150
   
   0
   
   
   
   





Re: XRC LoadFrame and size

2009-03-20 Thread Alexander

Hi again!

So if anybody can't help with my problem, maybe community know how can i 
get info about Frame(size, style, etc.) after i use LoadFrame.


Thank you.




Re: XRC LoadFrame and size

2009-03-20 Thread Alexander


>There are methods such as GetSize, GetWindowStyle and so on. Check 
your >local

>wxWidgets' manual for the subroutines of class wxWindow.
>
>
>Andri

I'm sorry, i forgot write, that I need get info from xrc file, not by 
exist window.

I see 1 way parce xrc by my self, but maybe somebody use another way.



Alien::wxWidgets 0.43 wxWidgets 2.8.10 Windows error

2009-03-21 Thread Alexander

Hello!
Today i try to compile WxWidgets 2.8.10 on my Windows mashine, with 
Alien::WxWidgets 0.43(from svn).
Previously, i already have wxperl v 0.9 that was compiled by WxWidgets 
2.8.9, and Alien::WxWidgets 0.40. As compiller i have mingw.


WxWidgets 2.8.10 compiled ok (i use mingw32-make -f makefile.gcc 
SHARED=1 BUILD=release UNICODE=1 string).

And after it i try install Alien::WxWidgets 0.43
perl build.pl --unicode
perl build
And have this error:
Configuration error: could not find libraries for configuration: '' '28' 
at inc/

My/Build/Win32.pm line 73.

Thanks for any help.



Re: Alien::wxWidgets 0.43 wxWidgets 2.8.10 Windows error

2009-03-24 Thread Alexander
Hi i found source of problem. I have problem because build.pl 
Alien-WxWidgets in windows ignore --unicode options.

I run build script in debuger.
If i use --debug options i see $stuff = 'd';
But if i run perl build.pl --unicode. $stuff = '';
If i  run perl build.pl --unicode --debug $stuff='d';

My/Build/Win32.pm

my $suff = ( $self->awx_unicode ? 'u' : '' ) .
  ( $self->awx_debug ? 'd' : '' );

After it i look to the package My::Build::Base; for awx_unicode.
sub awx_debug { $_[0]->args( 'debug' ) ? 1 : 0 }
sub awx_is_debug { $_[0]->awx_debug }
sub awx_unicode { $_[0]->notes( 'build_wx_unicode' ) ? 1 : 0 }
sub awx_is_unicode { $_[0]->awx_unicode }

$_[0]->notes( 'build_wx_unicode' )  does't return 1;
When, after i change sub awx_unicode { $_[0]->args( 'unicode' ) ? 1 : 0 
} script find binares.

but i see
Copying lib\Alien\wxWidgets\Utility.pm -> 
blib\lib\Alien\wxWidgets\Utility.pm
C:\DOCUME~1\Alex\LOCALS~1\Temp\compilet.exp:fake:(.edata+0x3c): 
undefined refere

nce to `boot_compilet'
C:\DOCUME~1\Alex\LOCALS~1\Temp\compilet.exp:fake:(.edata+0x40): 
undefined refere

nce to `boot_compilet'
collect2: ld returned 1 exit status
C:\DOCUME~1\Alex\LOCALS~1\Temp\compilet.exp:fake:(.edata+0x3c): 
undefined refere

nce to `boot_compilet'
C:\DOCUME~1\Alex\LOCALS~1\Temp\compilet.exp:fake:(.edata+0x40): 
undefined refere

nce to `boot_compilet'
collect2: ld returned 1 exit status
Copying C:\wxWid\lib\gcc_dll\wxmsw28u_plot_gcc_custom.dll -> 
blib\arch\Alien\wxW

idgets\msw_2_8_10_uni_mslu_gcc_3_4\lib\wxmsw28u_plot_gcc_custom.dll

perl build test
C:\Perl\perl_module\WX\Alien>perl build test
Set up gcc environment - 3.4.5 (mingw-vista special r3)
t\01_loadSet up gcc environment - 3.4.5 (mingw-vista special r3)
t\01_loadok
t\zy_pod_coverageok
t\zz_pod.ok
All tests successful.
Files=3, Tests=18,  3 wallclock secs ( 0.05 usr +  0.03 sys =  0.08 CPU)
Result: PASS

perl build install
install OK.

But, when i try compile wx 0.9 i see
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp  -noprototypes 
-nolinenumbers
-typemap C:\Perl\lib\ExtUtils\typemap -typemap ..\..\typemap -typemap 
typemap
ichText.xs > RichText.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e 
mv Ric

Text.xsc RichText.c
g++ -c  -I. -I..\.. 
-IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_mslu_gcc_
_4\lib -IC:\wxWid\include -IC:\wxWid\contrib\include-fvtable-thunks  
-O2 -m
hreads -Os -MP -O2-DVERSION=\"0.01\"-DXS_VERSION=\"0.01\" 
-DHASATTR
BUTE "-IC:\Perl\lib\CORE"  -DWXPL_EXT -DHAVE_W32API_H -D__WXMSW__ 
-D_UNICODE -D

xUSE_UNICODE_MSLU=1 -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA RichText.c
cc1plus.exe: warning: switch "-fvtable-thunks" is no longer supported
cc1plus.exe: error: to generate dependencies you must specify either -M 
or -MM

dmake:  Error code 129, while making 'RichText.o'
dmake:  Error code 255, while making 'subdirs'
dmake:  Error code 255, while making 'subdirs'



Re: Re: Alien::wxWidgets 0.43 wxWidgets 2.8.10 Windows error

2009-04-06 Thread Alexander

Mattia Barbon пишет:


  This should be fixed; you will need to reainstall A::wx from
Subversion.

Regards,
Mattia



Thanks, Mattia!


Re: Installing WxPerl on Vista

2009-06-10 Thread Alexander

Maybe compile?


Re: Alien-wxWidgets and static wxWidgets libraries

2009-07-16 Thread Alexander

Did you see cava-packager?
http://www.cava.co.uk/




Re: Alien-wxWidgets and static wxWidgets libraries

2009-07-17 Thread Alexander

I should have mentioned that I'm on linux. Thanks for the suggestion
though.


Wx::Perl::Packager ?


Error Compiling WxPerl from CSV

2009-07-30 Thread Alexander

When i try compile wxperl  0.91  At revision: 2594 from CSV.

WxWindgets 2.8.10.

C:\uPerl\bin\perl.exe C:\uPerl\lib\ExtUtils\xsubpp  -nolinenumbers 
-noprototypes
 -typemap C:\uPerl\lib\ExtUtils\typemap -typemap typemap  GDI.xs > 
GDI.xsc && C

:\uPerl\bin\perl.exe -MExtUtils::Command -e "mv" -- GDI.xsc GDI.c
g++  -fvtable-thunks  -O2 -mthreads -Os -c  -I. -I. 
-IC:\uPerl\site\lib\Alien\wx
Widgets\msw_2_8_10_uni_mslu_gcc_3_4\lib -IC:\WXWid\include 
-IC:\WXWid\contrib\in
clude   -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT 
-DUSE_SITECUST
OMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-DUSE_PE
RLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing 
-O2-DVERS
ION=\"0.91_02\" -DXS_VERSION=\"0.91_02\"  "-IC:\uPerl\lib\CORE"  
-DHAVE_
W32API_H -D__WXMSW__ -D_UNICODE -DwxUSE_UNICODE_MSLU=1 -DWXUSINGDLL 
-DNOPCH -DNO

_GCC_PRAGMA GDI.c
cc1plus.exe: warning: switch "-fvtable-thunks" is no longer supported
GDI.c: In function `void XS_Wx__DC_BeginDrawing(PerlInterpreter*, CV*)':
GDI.c:4499: warning: `BeginDrawing' is deprecated (declared at 
C:/WXWid/include/

wx/dc.h:392)
GDI.c: In function `void XS_Wx__DC_EndDrawing(PerlInterpreter*, CV*)':
GDI.c:5299: warning: `EndDrawing' is deprecated (declared at 
C:/WXWid/include/wx

/dc.h:393)
GDI.c: In function `void XS_Wx__DCClipper_new(PerlInterpreter*, CV*)':
GDI.c:7751: error: `wxPliOvl_wdc_n_n_n_n' was not declared in this scope
GDI.c: In function `void XS_Wx__Bitmap_GetHandlers(PerlInterpreter*, CV*)':
GDI.c:9244: warning: `operator 10' is deprecated (declared at 
C:/WXWid/include/w

x/list.h:1174)
dmake:  Error code 129, while making 'GDI.o'


Re: Error Compiling WxPerl from CSV

2009-07-31 Thread Alexander

After that:

  Try "make clean" and then rebuild.


Running Mkbootstrap for Wx ()
C:\uPerl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Wx.bs
C:\uPerl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Wx\", 'DLBASE' => 'Wx', 'DL_FUNCS' => {  
}, 'FUNCL

IST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
Set up gcc environment - 3.4.5 (mingw-vista special r3)
windres --include-dir C:\WXWid\include Wx.rc Wx_res.o
g++ -shared  -s  -o blib\arch\auto\Wx\Wx.dll Wx.o Constant.o Controls.o 
Event.o
Frames.o GDI.o Window.o Wx_res.o  C:\uPerl\lib\CORE\perl510.lib 
C:\uPerl\site\li
b\Alien\wxWidgets\msw_2_8_10_uni_mslu_gcc_3_4\lib\libwxmsw28u_core.a 
C:\uPerl\si
te\lib\Alien\wxWidgets\msw_2_8_10_uni_mslu_gcc_3_4\lib\libwxbase28u.a 
C:\mingw\l
ib\libunicows.a 
C:\uPerl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_mslu_gcc_3_4\li
b\libwxmsw28u_adv.a 
C:\uPerl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_mslu_gcc_3_
4\lib\libwxmsw28u_core.a 
C:\uPerl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_mslu_g
cc_3_4\lib\libwxbase28u.a C:\mingw\lib\libkernel32.a 
C:\mingw\lib\libuser32.a C:
\mingw\lib\libgdi32.a C:\mingw\lib\libwinspool.a 
C:\mingw\lib\libcomdlg32.a C:\m
ingw\lib\libadvapi32.a C:\mingw\lib\libshell32.a C:\mingw\lib\libole32.a 
C:\ming
w\lib\liboleaut32.a C:\mingw\lib\libnetapi32.a C:\mingw\lib\libuuid.a 
C:\mingw\l
ib\libws2_32.a C:\mingw\lib\libmpr.a C:\mingw\lib\libwinmm.a 
C:\mingw\lib\libver
sion.a C:\mingw\lib\libodbc32.a C:\mingw\lib\libodbccp32.a 
C:\mingw\lib\libmsvcr

t.a Wx.def
Wx.o:Wx.c:(.text+0x1c37): undefined reference to `_imp___Z13wxSetInstancePv'
collect2: ld returned 1 exit status
dmake:  Error code 129, while making 'blib\arch\auto\Wx\Wx.dll'


Re: Error Compiling WxPerl from CSV

2009-08-01 Thread Alexander



Index: cpp/wxapi.h
===
--- cpp/wxapi.h (revisione 2581)
+++ cpp/wxapi.h (copia locale)
@@ -15,6 +15,7 @@
 #endif

 #define __CPP_WXAPI_H
+#define STRICT

 #undef bool

Thanks!
Alex :)


Re: RFC: Detecting installed wxWidgets in Alien::wxWidgets

2009-10-20 Thread Alexander

Mattia Barbon пишет:

Hi,
currently A::wx does not detect an already installed wxWidgets version 
if it was compiled by A::wx itself and installed together with A::wx, 
hence every upgrade to A::wx forces an unnecessary wxWidgets 
recompilation. Three options are:

...

What do you think?

Regards,
Mattia


I think that option number 3 is the best way.


Problem with ppm file in wxperl repository

2010-04-13 Thread Alexander

Hello!
Today i try install wxperl from ppm. I have some ppm repos and wx 
version on it have different version

trouchelle.com  - 0.96
ActiveState - 0.9701
wxperl.co.uk  - 0.09701.10
So my choice was wxperl. Installing Ok, but then i run script i have 
error Perl_croak_xs_usage.


if i install anower ppm file i have error what missing 
wxmsw28u_core_vc_custom.dll


Please help.
<>

Re: Problem with ppm file in wxperl repository

2010-04-13 Thread Alexander

Hello Mark!

I try to do this 3 time. I uninstall all Wx related modules. I don't mix 
repos, at one time i use only one repository.

But this not work for me, i have the same error.


Re: Problem with ppm file in wxperl repository

2010-04-14 Thread Alexander
I install wx from wxper.co.uk. but when i start minimal.pl from Wx 
samples dir i have "Perl_croack_xs_usage".

What i do wrong?


Error while compiling from svn on WindowsXp

2010-04-14 Thread Alexander



Error message
C:\uPerl\bin\perl.exe C:\uPerl\site\lib\ExtUtils\xsubpp  -noprototypes 
-nolinenu
mbers  -typemap C:\uPerl\lib\ExtUtils\typemap -typemap ..\..\typemap 
-typemap ty
pemap  RichText.xs > RichText.xsc && C:\uPerl\bin\perl.exe 
-MExtUtils::Command -

e "mv" -- RichText.xsc RichText.c
g++  -fvtable-thunks  -O2 -mthreads -Os -c  -I. -I..\.. 
-IC:\uPerl\site\lib\Alie
n\wxWidgets\msw_2_8_11_uni_gcc_3_4\lib 
-IC:\uPerl\site\lib\Alien\wxWidgets\msw_2
_8_11_uni_gcc_3_4\include   -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT 
-DHAVE_D
ES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC 
-DPERL_IMPLICIT_CONTEXT -DPE
RL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE 
-fno-strict-al
iasing -O2-DVERSION=\"0.01\"-DXS_VERSION=\"0.01\"  
"-IC:\uPerl\lib\C
ORE"  -DWXPL_EXT -DHAVE_W32API_H -D__WXMSW__ -DNDEBUG -D_UNICODE 
-DwxUSE_GRAPHIC

S_CONTEXT=1 -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA RichText.c
cc1plus.exe: warning: switch '-fvtable-thunks' is no longer supported
RichText.c: In function 'void 
XS_Wx__RichTextHeaderFooterData_new(PerlInterprete

r*, CV*)':
RichText.c:18905: error: 'wxPliOvl_wrth' was not declared in this scope
dmake:  Error code 129, while making 'RichText.o'
dmake:  Error code 255, while making 'subdirs'
dmake:  Error code 255, while making 'subdirs'


Re: Error while compiling from svn on WindowsXp

2010-04-14 Thread Alexander

I use svn copy of code. alt revision 2893


Hi,

Do you have success with the latest CPAN releases - 0.9701 0r 
Wx-0.9701_01 ?






Fwd: Re: Problem with ppm file in wxperl repository

2010-04-14 Thread Alexander


15.04.2010 0:03, Mark Dootson пишет:

 Hi,

 I did a quick test and have the errors you report. You need to upgrade
 your ActivePerl to 1007. That will solve the "Perl_croak_xs_usage"
 error message.

 The "missing wxmsw28u_core_vc_custom.dll"  comes from the ActiveState
 repository - their Alien-wxWidgets PPM does not seem to install
 wxWidgets dlls at the moment.

 Regards

 Mark


 On 14/04/2010 20:40, Mark Dootson wrote:

 Hi,

 Could you post the actual error message?
 Also, what is your ActivePerl build number?


 On 14/04/2010 17:48, Alexander wrote:

 I install wx from wxper.co.uk. but when i start minimal.pl from Wx
 samples dir i have "Perl_croack_xs_usage".
 What i do wrong?






Update Perl give me result. Thank you.



Re: package Wx apps with Cava

2010-06-23 Thread Alexander

Hi Renée Bäcker,

maybe you will try to compile some easy code

>I can't see any error messages.

did you select gui mode in project? Try console, and you can see all error.



Re: Question about SplashScreen

2010-09-29 Thread Alexander

 29.09.2010 21:38, herbert breunung:

you message is a bit confusing to be, you already make a timeout by saying
1, the amount of milliseconds it should stay. or you say:


my $sc;
BEGIN {
require Wx::Perl::SplashFast;
$sc = Wx::Perl::SplashFast->new('/pfad/zum/logo.jpg');
}
...
$sc->Destroy();

cheers
herbert aka lichtkind
http://kephra.sf.net
I'm sorry for my bad English. Yes in my example i use timeout, but if i 
click to Splash screen it will be closed, and now matter when i click, 
at 1second or 9. I want that Splash did not close by mouse click on it. 
i try your example in minimal perl app.

use Wx;
package MyFrame;
use strict;
use base qw(Wx::Frame);
sub new {
  my( $class, $label ) = @_;
  my $this = $class->SUPER::new( undef, -1, $label );
  $this;
}

package main;
my $sc;
BEGIN {
require Wx::Perl::SplashFast;
$sc = Wx::Perl::SplashFast->new('./res/image/start.png');
}
my $app = Wx::SimpleApp->new;
my $frame = MyFrame->new( "Minimal wxPerl app" );
$frame->Show;
$app->MainLoop;

and splash screen closed after 1 or 2 seconds at start , or immediately 
if click to splash.


 I hope i can explain that i need.


Re: Question about SplashScreen

2010-10-18 Thread Alexander
 02.10.2010 0:54, herbert breunung пишет:
>  tricks  that came to my mind, like intersecting mouse events,
> but none has worked.
Hello All,
sorry for the long silence. Maybe someone knows way to create window
with image like splash(i mean speed) and ignore mouse input???


SlashScreen and Exit Event

2010-10-27 Thread Alexander
Hello all!

I try to handle Exit event by SplashScreen, and have nothing;
I try use wxSplashScreen::OnCloseWindow and have error Can't locate
object method "OnCloseWindow" via package "Wx::Window" at
C:/Perl/!My/FTT/Res/Dialog/Splash.pm line 30.
i try add EVT_CLOSE and it not work.
How i can know what splash destroy?


Re: SlashScreen and Exit Event

2010-10-28 Thread Alexander
Thank you Mark, My mistake was that I tried this construction:

$splash->GetSplashWindow->PushEventHandler($closehandler);



OnInit must return 1 error with newer WxPerl

2012-01-16 Thread Alexander Demmler
Hi,


Some more info about my Mac OS X box:

Systemversion:  Mac OS X 10.6.8 (10K549)
  Kernel-Version:   Darwin 10.8.0
  Startvolume:  System
  Startmodus:   Normal
  Gerätename:   rocket
  Benutzername: Alexander Demmler (ademmler)
  Sicherer virtueller Speicher: Aktiviert
  64-Bit-Kernel and -Erweiterungen: Nein

Alexander

I am frustrated

2012-01-20 Thread Alexander Demmler
hi folks,

 I am really frustrated. I am hunting since 3 days to get my WxPerl software 
working
on Mac OS X 10.6.8 I have send a couple of mails to this list without response.

I tried allready:
1. a fresh perl installation using macports => negative result
2. reinstalling older perl, WxWidgets and WxPerl => negative result
3. reinstalling perl and WxPerl using Alien::WxWidgets => negative result

4. Installing CitrusPerl (for cross testing) => my app launches succsessfully, 
but I need Device::SerialPort,
which does not compile on CitrusPerl . . . 

:-( I need help
Alexander




CitrusPerl + Device::SerialPort install fails

2012-01-20 Thread Alexander Demmler
Hi Mark, and friends,

I try to install Device::SerialPort into CitrusPerl.
The the build process stops with those last lines:

SerialPort.c: In function ‘XS_Device__SerialPort__Bits_get_hash’:
SerialPort.c:109: error: ‘NULL’ undeclared (first use in this function)
SerialPort.c:109: error: (Each undeclared identifier is reported only once
SerialPort.c:109: error: for each function it appears in.)
SerialPort.c: In function ‘boot_Device__SerialPort’:
SerialPort.c:326: error: ‘NULL’ undeclared (first use in this function)
lipo: can't open input file: 
/var/folders/Fe/FezzvIW-ESC0AvDxA7BWEk+++TI/-Tmp-//cct4hP2L.out (No such file 
or directory)
make: *** [SerialPort.o] Error 1

Any hint would be nice.
Alexander

Re: Future of wxperl.it

2015-01-05 Thread Alexander xb
Who is maintaining it now?

How much are the fees? I might be willing to participate, looks like a
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 to function as the
> starting
> point of all wxPerl related web information. He choose a .it domain in
> honour to Mattia Barbon, who is italian.
>
> 2015-03-03, two months from now, wxperl.it will expire.
>
> What shall we do with it? If we want to keep it, someone will have to pay
> the fees...
>
> -- Johan
>