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...> - 2007-02-12 13:43:24
|
This is all very frustrating. I need just enough HTML rendering so my (HTML illiterate) user can see that he is working on the page he thinks he is working on. That means very basic layout (just BR and TABLES) and images that work. But it seems even that is beyond the state of WxHtmlWindow :-( Unless I parse the HTML for image tags, convert them all to a new local directory structure and download each image separately :-( I may have better results stripping out all HTML tags and just displaying the text contents. Not the most user friendly option though. -Peter At 09:34 PM 2/11/2007, Marcus wrote: >On Sunday 11 February 2007 19:26, Eric Wilhelm wrote: >> WebCore: >> + cross-platform >> + see WebKit pros (ObjC layer is gone) >> - wxWebCore layer is just recently getting to production grade >> - I have to write the perl binding > >Sounds like great news. I've had my application which uses wxHTML frozen >for 4 years now because I could never realise WYSIWYG editing or >up-to-date rendering. I think some form of WYSIWYG editing has been at >the top of many wx wish lists for many years. I remember discussing it >with Julian, and some of the other core wx developers, because he also >wanted it for some app. At the time nobody could think of a way to >develop one from existing components, like Mozilla/Gecko...at least not >without a sponsor. > >So I await the wxPerl binding with great anticipation. It's frustrating >to have an application which is usable, but lacks the features which >make it really user friendly. Requiring knowledge of HTML is not really >user friendly. > >To Peter: > >I'm pleased wxHTML exists so that some HTML rendering is possible in >wxPerl, only be forewarned before you invest any time in it. > >The syntax of wxHTML is a mystery for which only trial and error can >lead to a solution. It's supposed to be HTML 2.0, but either absolute >or relative image links (one of the two) never worked for me, and I >have really tried all syntactic variations. Patience is a virtue >working with it is all I can say. I would not recommend spending your >time with it unless you have very simple pages to render. Don't even >bother trying to surf the open Web with it, unless the pages are HTML >2.0 compliant and without javascript or any other technology of the >past 8-10 years ;-) > > >A web browser would also open up running web-type apps on the desktop >with a local server. > > >Marcus > > >------------------------------------------------------------------------- >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 __--=Peter Theobald=--__ www.PeterTheobald.com |
From: Donovan A. <al...@Zo...> - 2007-02-12 04:02:33
|
Not looking at the whole thread, so forgive if a repeat of what others = have said... =20 You can use both IE and Mozilla via ActiveX for Wx (search the mail list = for more on those topics). =20 =20 I cannot comment much on the javascript aspect, but an idea might to be = to run the process as another user and disable the setting. A better = approach might be to slurp the web page down via LWP, chop out the = <SCRIPT> sections, and load into browser from temp file... =20 =20 ________________________________ From: wxp...@li... on behalf of Peter = Theobald Sent: Sun 2/11/2007 7:18 AM To: wxp...@li... Cc: wxp...@li... Subject: [wxperl-users] wxWidgets web browser I am trying to have an embedded web browser in my wxperl program. The most important thing is I can NOT have Javascript running because it = often changes the underlying source of the page and I need to display = the original page/html as it is pulled off the web site. I am trying to use HtmlWindow but the images are not displaying, I = suspect because HtmlWindow doesn't pull anything off the Internet = automatically. Parsing the HTML for img tags and downloading the images = separately sounds like a bad idea, mostly because I suspect I would have = to match the directory hierarchy of the web server I am pulling from and = change any absolute image URLs to relative urls. Are there any suggestions for displaying web pages inside a wxWidgets = program? Is there a better way to make HtmlWindow work as a browser, or = a better widget? Is there an easy way to embed IE or Firefox in a = wxWidgets frame with Javascript disabled (without disabling it for the = user's "real" browser as well)? Thanks, Peter Theobald -------------------------------------------------------------------------= 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Mark D. <mar...@zn...> - 2007-02-12 03:24:34
|
After some cursory investigation, I can't actually get Wx::InternetFSHandler to work on Win32. The obvious C code doesn't work, and the obvious is pretty much all I can manage. You can get pages to load if you install Wx::Perl::FSHandler::LWP from CPAN. Then you can do: use Wx::FS; use LWP::UserAgent; use Wx::Perl::FSHandler::LWP; my $ua = LWP::UserAgent->new; my $handler = Wx::Perl::FSHandler::LWP->new( $ua ); Wx::FileSystem::AddHandler( $handler ); .......... $htmlwindow->LoadPage('http://www.google.com/'); However, as pointed out by Marcus, this still isn't particularly satisfactory as it does not handle relative urls so none of the image tags work. You could take a look at the Wx::Perl::FSHandler::LWP code and in particular the sub 'OpenFile'. If you add the following code to it: my $path = $fs->GetPath(); print qq(PATH = $path\n); print qq(LOCATION = $location\n); you'll see where the problem lies. This could probably by fixed by adding in your own custom handlers for the appropriate bits of the parser and tag handlers, but if you look at the output in wxHtmlWindow, it probably won't ever do what you require. Thanks to the efforts of Andrew on this list putting together a patch for Wx::ActiveX, I've finally included Wx::ActiveX in the unicode ppms at http://www.cava.co.uk/freetools/wxperl.html Until Wx::WebCore is ready (which sounds wonderful) IMHO your best bet for embedding on MSWin32 seems to be Wx::ActiveX. But I say that as one who has read what it is supposed to do rather than from any successful experience. Regards Mark Peter Theobald wrote: > At 01:03 PM 2/11/2007, Eric Wilhelm wrote: >>> It complains 'unable to open requested HTML document: >>> http://www.google.com' for ANY url I give it. >> Init the fs handler? > > Sorry if this seems obvious to everyone else, but... could you be a little more specific? > How does one 'init the fs handler'? > The HtmlWindow man pages don't say anything about an fs handler. > I don't see a class called Wx::FS. The closest I can find is Wx::FileSystem, but I don't see a clear connection between FileSystem and HtmlWindow. > -Peter > > >>> If I download the HTML >>> using LWP::Simple or something like it and $htmlwin->SetPage( $html) >>> it will display the page, but all the images are the same 'broken >>> image' icon. >> If broken images on SetPage, are because the images are supposed to be >> relative to the url, which is something like 'about:blank' when the >> content is loaded via SetPage. >> >> --Eric >> -- >> Introducing change is like pulling off a bandage: the pain is a memory >> almost as soon as you feel it. >> --Paul Graham >> --------------------------------------------------- >> http://scratchcomputing.com >> --------------------------------------------------- >> >> ------------------------------------------------------------------------- >> 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 > > __--=Peter Theobald=--__ > www.PeterTheobald.com > > > ------------------------------------------------------------------------- > 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: Marcus <li...@wo...> - 2007-02-12 02:35:05
|
On Sunday 11 February 2007 19:26, Eric Wilhelm wrote: > WebCore: > + cross-platform > + see WebKit pros (ObjC layer is gone) > - wxWebCore layer is just recently getting to production grade > - I have to write the perl binding Sounds like great news. I've had my application which uses wxHTML frozen for 4 years now because I could never realise WYSIWYG editing or up-to-date rendering. I think some form of WYSIWYG editing has been at the top of many wx wish lists for many years. I remember discussing it with Julian, and some of the other core wx developers, because he also wanted it for some app. At the time nobody could think of a way to develop one from existing components, like Mozilla/Gecko...at least not without a sponsor. So I await the wxPerl binding with great anticipation. It's frustrating to have an application which is usable, but lacks the features which make it really user friendly. Requiring knowledge of HTML is not really user friendly. To Peter: I'm pleased wxHTML exists so that some HTML rendering is possible in wxPerl, only be forewarned before you invest any time in it. The syntax of wxHTML is a mystery for which only trial and error can lead to a solution. It's supposed to be HTML 2.0, but either absolute or relative image links (one of the two) never worked for me, and I have really tried all syntactic variations. Patience is a virtue working with it is all I can say. I would not recommend spending your time with it unless you have very simple pages to render. Don't even bother trying to surf the open Web with it, unless the pages are HTML 2.0 compliant and without javascript or any other technology of the past 8-10 years ;-) A web browser would also open up running web-type apps on the desktop with a local server. Marcus |
From: Peter T. <pe...@Pe...> - 2007-02-11 23:48:29
|
At 01:03 PM 2/11/2007, Eric Wilhelm wrote: >>It complains 'unable to open requested HTML document: >> http://www.google.com' for ANY url I give it. > >Init the fs handler? Sorry if this seems obvious to everyone else, but... could you be a little more specific? How does one 'init the fs handler'? The HtmlWindow man pages don't say anything about an fs handler. I don't see a class called Wx::FS. The closest I can find is Wx::FileSystem, but I don't see a clear connection between FileSystem and HtmlWindow. -Peter >> If I download the HTML >> using LWP::Simple or something like it and $htmlwin->SetPage( $html) >> it will display the page, but all the images are the same 'broken >> image' icon. > >If broken images on SetPage, are because the images are supposed to be >relative to the url, which is something like 'about:blank' when the >content is loaded via SetPage. > >--Eric >-- >Introducing change is like pulling off a bandage: the pain is a memory >almost as soon as you feel it. >--Paul Graham >--------------------------------------------------- > http://scratchcomputing.com >--------------------------------------------------- > >------------------------------------------------------------------------- >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 __--=Peter Theobald=--__ www.PeterTheobald.com |
From: Mark D. <mar...@zn...> - 2007-02-11 18:41:33
|
Following on from Eric's pointer towards Wx::FS, I find that it does not work on my system either. This is because the wxWidgets I am using is compiled with: #define wxUSE_FS_INET 0 So anyone using the PPMs I post from time to time will be similarly affected. The setting is part of the patches included with Alien::wxWidgets. I'll check and see if I can find out why this patch is there. Regards Mark Peter Theobald wrote: > No, it does not. > It complains 'unable to open requested HTML document: http://www.google.com' for ANY url I give it. > If I download the HTML using LWP::Simple or something like it and $htmlwin->SetPage( $html) it will display the page, but all the images are the same 'broken image' icon. > > > At 11:48 AM 2/11/2007, Mark Dootson wrote: >> Does: >> >> $htmlwin->LoadPage("http://www.somewhere.something/index.html"); >> >> not work for you? >> >> >> Mark >> >> >> >> Peter Theobald wrote: >>> I am trying to have an embedded web browser in my wxperl program. >>> The most important thing is I can NOT have Javascript running because it often changes the underlying source of the page and I need to display the original page/html as it is pulled off the web site. >>> >>> I am trying to use HtmlWindow but the images are not displaying, I suspect because HtmlWindow doesn't pull anything off the Internet automatically. Parsing the HTML for img tags and downloading the images separately sounds like a bad idea, mostly because I suspect I would have to match the directory hierarchy of the web server I am pulling from and change any absolute image URLs to relative urls. >>> >>> Are there any suggestions for displaying web pages inside a wxWidgets program? Is there a better way to make HtmlWindow work as a browser, or a better widget? Is there an easy way to embed IE or Firefox in a wxWidgets frame with Javascript disabled (without disabling it for the user's "real" browser as well)? >>> >>> Thanks, >>> Peter Theobald >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------------------------- >> 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 > > __--=Peter Theobald=--__ > www.PeterTheobald.com > |
From: Eric W. <scr...@gm...> - 2007-02-11 18:26:35
|
# from Peter Theobald # on Sunday 11 February 2007 07:18 am: >Are there any suggestions for displaying web pages inside a wxWidgets > program? Is there a better way to make HtmlWindow work as a browser, > or a better widget? Is there an easy way to embed IE or Firefox in a > wxWidgets frame with Javascript disabled (without disabling it for > the user's "real" browser as well)? In dotReader (http://dotreader.com) we're using IE, Mozilla, and WebKit (depending on the OS) but wxWebCore is right around the corner and will hopefully make everything much nicer. In short, I don't think firefox can embed, Mozilla is a dead-end, IE is a nightmare waiting to happen, WebKit has turned into the cross-platform WebCore. A rundown of the pros and cons: IE: + it mostly works (js, plugins, etc) - png support anyone? - ftp? - everything has to be accessed via ActiveX - doesn't *really* behave as a proper scrolled window - some things don't work as documented (hook right-click?) - microsieve's auto-updater breaks things - come on, it's internet explorer! bah - black box - black box - black box - black box - black box - black box (con ad infinitum) Mozilla: + has a wysiwyg editable mode + quick and renders CSS correctly - cannot be easily packaged in a PAR - requires registered protocol handlers (these have no perl binding) (I currently use the right-click as a load-url hook (eek!)) - doesn't behave as a proper scrolled window - haven't tried it on win - not on mac WebKit: + quick, correct + wysiwyg editable mode + does everything we need (now -- see below) - somewhat limited by ObjC layer - is only on mac WebCore: + cross-platform + see WebKit pros (ObjC layer is gone) - wxWebCore layer is just recently getting to production grade - I have to write the perl binding OSoft (the company behind dotReader) has worked with Kevin Ollivier (one of the wxMozilla & wxWebKit developers) to get everything on our wishlist addressed. We're also the folks behind the Wx::WebKit and Wx::Mozilla perl bindings (though I need to push some tarballs to CPAN.) Soon, that list will include Wx::WebCore, but I have a long todo list, so that's "for some value of 'soon'" :-/ --Eric -- Consumers want choice, consumers want openness. --Rob Glaser --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- |
From: Eric W. <scr...@gm...> - 2007-02-11 18:04:04
|
# from Peter Theobald # on Sunday 11 February 2007 09:32 am: >It complains 'unable to open requested HTML document: > http://www.google.com' for ANY url I give it. Init the fs handler? > If I download the HTML > using LWP::Simple or something like it and $htmlwin->SetPage( $html) > it will display the page, but all the images are the same 'broken > image' icon. If broken images on SetPage, are because the images are supposed to be relative to the url, which is something like 'about:blank' when the content is loaded via SetPage. --Eric -- Introducing change is like pulling off a bandage: the pain is a memory almost as soon as you feel it. --Paul Graham --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- |
From: Peter T. <pe...@Pe...> - 2007-02-11 17:32:13
|
No, it does not. It complains 'unable to open requested HTML document: http://www.google.com' for ANY url I give it. If I download the HTML using LWP::Simple or something like it and $htmlwin->SetPage( $html) it will display the page, but all the images are the same 'broken image' icon. At 11:48 AM 2/11/2007, Mark Dootson wrote: >Does: > >$htmlwin->LoadPage("http://www.somewhere.something/index.html"); > >not work for you? > > >Mark > > > >Peter Theobald wrote: >> I am trying to have an embedded web browser in my wxperl program. >> The most important thing is I can NOT have Javascript running because it often changes the underlying source of the page and I need to display the original page/html as it is pulled off the web site. >> >> I am trying to use HtmlWindow but the images are not displaying, I suspect because HtmlWindow doesn't pull anything off the Internet automatically. Parsing the HTML for img tags and downloading the images separately sounds like a bad idea, mostly because I suspect I would have to match the directory hierarchy of the web server I am pulling from and change any absolute image URLs to relative urls. >> >> Are there any suggestions for displaying web pages inside a wxWidgets program? Is there a better way to make HtmlWindow work as a browser, or a better widget? Is there an easy way to embed IE or Firefox in a wxWidgets frame with Javascript disabled (without disabling it for the user's "real" browser as well)? >> >> Thanks, >> Peter Theobald >> >> >> ------------------------------------------------------------------------- >> 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 > > > >------------------------------------------------------------------------- >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 __--=Peter Theobald=--__ www.PeterTheobald.com |
From: Mark D. <mar...@zn...> - 2007-02-11 16:50:55
|
Does: $htmlwin->LoadPage("http://www.somewhere.something/index.html"); not work for you? Mark Peter Theobald wrote: > I am trying to have an embedded web browser in my wxperl program. > The most important thing is I can NOT have Javascript running because it often changes the underlying source of the page and I need to display the original page/html as it is pulled off the web site. > > I am trying to use HtmlWindow but the images are not displaying, I suspect because HtmlWindow doesn't pull anything off the Internet automatically. Parsing the HTML for img tags and downloading the images separately sounds like a bad idea, mostly because I suspect I would have to match the directory hierarchy of the web server I am pulling from and change any absolute image URLs to relative urls. > > Are there any suggestions for displaying web pages inside a wxWidgets program? Is there a better way to make HtmlWindow work as a browser, or a better widget? Is there an easy way to embed IE or Firefox in a wxWidgets frame with Javascript disabled (without disabling it for the user's "real" browser as well)? > > Thanks, > Peter Theobald > > > ------------------------------------------------------------------------- > 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: Peter T. <pe...@Pe...> - 2007-02-11 15:18:43
|
I am trying to have an embedded web browser in my wxperl program. The most important thing is I can NOT have Javascript running because it often changes the underlying source of the page and I need to display the original page/html as it is pulled off the web site. I am trying to use HtmlWindow but the images are not displaying, I suspect because HtmlWindow doesn't pull anything off the Internet automatically. Parsing the HTML for img tags and downloading the images separately sounds like a bad idea, mostly because I suspect I would have to match the directory hierarchy of the web server I am pulling from and change any absolute image URLs to relative urls. Are there any suggestions for displaying web pages inside a wxWidgets program? Is there a better way to make HtmlWindow work as a browser, or a better widget? Is there an easy way to embed IE or Firefox in a wxWidgets frame with Javascript disabled (without disabling it for the user's "real" browser as well)? Thanks, Peter Theobald |
From: Andrew <sob...@gm...> - 2007-02-10 12:33:08
|
Hi Mark, thanks for the info. that completely answers my question. I forgot to mention in my email that I had installed Wx::Perl onto a shared network drive, so the Alien::wxWidgets installation (on C:) isn't available for the other users. I have copied the dlls to the network drive as well. It sounds like Wx::Mini is the key to finding their locations, I'll have a look at that next week. cheers Andrew On 2/10/07, Mark Dootson <mar...@zn...> wrote: > Hi, > > You should install Alien::wxWidgets. Just say [no] to building Wx and as > long as your WXWIN and WXDIR environment vars are correct, Alien will > pick up and install the dlls correctly. > > Then, re-compile and install Wx so it picks up Alien correctly. > > Now check your installed Wx::Mini. > > In there you'll find a definition for: > > $Wx::dlls hash which should contain all the correct names of your DLLs. > > sub _alien_path which will define where Wx searches for the DLLs. This > should match your installed Alien/wxWidgets/lib/xxxxxx path where the > DLLs are installed. > > You could always just hack your current Wx::Mini to find the correct > DLLs in _alien_path - but following the Alien / Wx route above should > always work for you. > > Regards > > Mark > > > Andrew wrote: > > Hi, > > thanks for all the replies. > > It turns out that I really did need to compile wxwidgets/perl myself, > > because I also wanted to compile Wx::ActiveX, which requires a built > > wxwidgets source tree. > > I discovered the make errors I was getting with the supplied wxwidgets > > makefiles were caused by having cygwin (sh) in my PATH. After > > removing cygwin from my PATH, wxwidgets compiled successfully with > > mingw32-make and the supplied makefiles. > > There is a minor error in the Wx docs/INSTALL.pod under the MinGW 1.1 > > (wxWidgets 2.5.x) section: > > where it says cd ..\..\contrib\src\stc, I believe this should be > > ..\..\contrib\build\stc. > > > > Attached are patches (adapted from Simon Flack's patches on the > > Wx::ActiveX cpan page) I applied to Wx::ActiveX 0.05 to compile > > against wxwidgets 2.6 (cvs head) and 2.8.0 respectively. > > > > There is one (minor) remaining issue. > > The wxPerl installation we are currently using (the wxPerl 0.26/ > > wxwidgets 2.6.2 binary release) picks up the wxwidgets dlls > > automatically from lib/MSWin32-x86-multi-thread/auto/Wx/*.dll. > > My compiled version doesn't find the dlls automatically, I have to add > > lib/auto/Wx (where they were installed) to my PATH. Does anyone know > > the reason for this, and is there a way to make my compiled dlls be > > found automatically (without adding the directory to PATH)? I have > > tried copying them to $arch/auto/Wx but no joy. > > > > cheers, > > Andrew > > > > > > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > 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: Mark D. <mar...@zn...> - 2007-02-10 01:59:23
|
Hi, You should install Alien::wxWidgets. Just say [no] to building Wx and as long as your WXWIN and WXDIR environment vars are correct, Alien will pick up and install the dlls correctly. Then, re-compile and install Wx so it picks up Alien correctly. Now check your installed Wx::Mini. In there you'll find a definition for: $Wx::dlls hash which should contain all the correct names of your DLLs. sub _alien_path which will define where Wx searches for the DLLs. This should match your installed Alien/wxWidgets/lib/xxxxxx path where the DLLs are installed. You could always just hack your current Wx::Mini to find the correct DLLs in _alien_path - but following the Alien / Wx route above should always work for you. Regards Mark Andrew wrote: > Hi, > thanks for all the replies. > It turns out that I really did need to compile wxwidgets/perl myself, > because I also wanted to compile Wx::ActiveX, which requires a built > wxwidgets source tree. > I discovered the make errors I was getting with the supplied wxwidgets > makefiles were caused by having cygwin (sh) in my PATH. After > removing cygwin from my PATH, wxwidgets compiled successfully with > mingw32-make and the supplied makefiles. > There is a minor error in the Wx docs/INSTALL.pod under the MinGW 1.1 > (wxWidgets 2.5.x) section: > where it says cd ..\..\contrib\src\stc, I believe this should be > ..\..\contrib\build\stc. > > Attached are patches (adapted from Simon Flack's patches on the > Wx::ActiveX cpan page) I applied to Wx::ActiveX 0.05 to compile > against wxwidgets 2.6 (cvs head) and 2.8.0 respectively. > > There is one (minor) remaining issue. > The wxPerl installation we are currently using (the wxPerl 0.26/ > wxwidgets 2.6.2 binary release) picks up the wxwidgets dlls > automatically from lib/MSWin32-x86-multi-thread/auto/Wx/*.dll. > My compiled version doesn't find the dlls automatically, I have to add > lib/auto/Wx (where they were installed) to my PATH. Does anyone know > the reason for this, and is there a way to make my compiled dlls be > found automatically (without adding the directory to PATH)? I have > tried copying them to $arch/auto/Wx but no joy. > > cheers, > Andrew > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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: RAY M. <ray...@ya...> - 2007-02-09 13:51:24
|
新しいメールアドレスをお知らせします新しいメールアドレス: ray...@ya... I am a Banker,the Assistant Regional manager at Lloyds TSB Commercial Finance in Yorkshire UK.I have a business proposal valued at US$40,000,000.00, (forty Million, Dollars) in my branch indicate interest for details - RAY MICHEAL |
From: Andrew <sob...@gm...> - 2007-02-08 14:23:41
|
Hi, thanks for all the replies. It turns out that I really did need to compile wxwidgets/perl myself, because I also wanted to compile Wx::ActiveX, which requires a built wxwidgets source tree. I discovered the make errors I was getting with the supplied wxwidgets makefiles were caused by having cygwin (sh) in my PATH. After removing cygwin from my PATH, wxwidgets compiled successfully with mingw32-make and the supplied makefiles. There is a minor error in the Wx docs/INSTALL.pod under the MinGW 1.1 (wxWidgets 2.5.x) section: where it says cd ..\..\contrib\src\stc, I believe this should be ..\..\contrib\build\stc. Attached are patches (adapted from Simon Flack's patches on the Wx::ActiveX cpan page) I applied to Wx::ActiveX 0.05 to compile against wxwidgets 2.6 (cvs head) and 2.8.0 respectively. There is one (minor) remaining issue. The wxPerl installation we are currently using (the wxPerl 0.26/ wxwidgets 2.6.2 binary release) picks up the wxwidgets dlls automatically from lib/MSWin32-x86-multi-thread/auto/Wx/*.dll. My compiled version doesn't find the dlls automatically, I have to add lib/auto/Wx (where they were installed) to my PATH. Does anyone know the reason for this, and is there a way to make my compiled dlls be found automatically (without adding the directory to PATH)? I have tried copying them to $arch/auto/Wx but no joy. cheers, Andrew |
From: Kristoffer R. <br...@ta...> - 2007-02-06 18:08:11
|
Hi, Vaiagra $3. 35 Vaulium $1. 25 Cuialis $3. 75 Abmbien $2. 90 Suoma $1. 15 http://www.33!rx.com Important: Remove "!" in the above link |
From: Daniel <dan...@ya...> - 2007-02-06 15:39:35
|
=0AHi Eriam,=0A=0Athats coding....=0A=0AEverytime it runs I wondered about = the error-message. Argh. I really didn't see it....=0A=0A=0AThanks to all! = Now it works fine!=0A=0A$self-Close(1) is all I need (I'm using windows xp)= .=0A=0ADaniel=0A=0A=0A=0A----- Urspr=FCngliche Mail ----=0AVon: Eriam Schaf= fter <er...@er...>=0AAn: Daniel <dan...@ya...>=0ACC: = wxp...@li...=0AGesendet: Dienstag, den 6. Februar 200= 7, 16:25:26 Uhr=0ABetreff: Re: [wxperl-users] How to quit an Wx application= ? - Another Idea=0A=0A=0A=0A>=0A> $panel_update->{button}{"killme"} =3D= Wx::Button->new( $panel_update,=0A> -1= ,=0A> 'killme',=0A> = [75, 20],=0A> [150, -1= ]=0A> );=0A>=0A> EVT_BUTTON($panel_= update, $panel_update->{button}{"Exit"}, sub {=0A>=0A=0A=0AHello Daniel,=0A= =0AYour event is attached to the wrong button $panel_update->{button}{"Exit= "}=0Ayou should attach it to the correct button instead.=0A=0ABye=0A=0AEria= m=0A=0A=0A=0A=0A=0A=0A=0A=0A =0A =0A_____________________________= ______________________________ =0ADer fr=FChe Vogel f=E4ngt den Wurm. Hier = gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de=0A=0A=0A=0A=0A=0A= =0A=0A=09=0A=09=09=0A______________________________________________________= _____ =0ADer fr=FChe Vogel f=E4ngt den Wurm. Hier gelangen Sie zum neuen Ya= hoo! Mail: http://mail.yahoo.de |
From: Eriam S. <er...@er...> - 2007-02-06 15:13:15
|
> > $panel_update->{button}{"killme"} =3D Wx::Button->new( $panel_updat= e, > -1, > 'killme', > [75, 20], > [150, -1] > ); > > EVT_BUTTON($panel_update, $panel_update->{button}{"Exit"}, sub { > Hello Daniel, Your event is attached to the wrong button $panel_update->{button}{"Exit"= } you should attach it to the correct button instead. Bye Eriam |
From: Mhairi P. <mer...@la...> - 2007-02-06 15:03:00
|
Hi, Vaiagra $3. 35 Vaulium $1. 25 Cuialis $3. 75 Abmbien $2. 90 Suoma $1. 15 http://www.33!rx.com Important: Remove "!" in the above link |
From: Daniel C. C. <cri...@gm...> - 2007-02-06 15:00:14
|
Hi, =20 Do you work under linux ? =20 If yes then you must do this before you call Destroy =20 $myParentFrame->Show(0); =20 I hope it helps. If not I will try to run your code when I get home. =20 _____ =20 From: wxp...@li... [mailto:wxp...@li...] On Behalf Of Daniel Sent: Tuesday, February 06, 2007 4:33 PM To: wxp...@li... Subject: [wxperl-users] How to quit an Wx application? - Another Idea =20 Hi, as far as I see, it is not easy to exit an application from inside. I = tried to destroy everything before the exit, but in fact it don't work... My (new) question: Isn't it possible to cause the same event as clicking = on the "X" in the top right border? Why do I have to programm it again, I = think it's still done. I know your time is rare, but if anyone could help me..... The actual code ist like that: ---- code start ---- #!/usr/bin/perl -w # use strict; use Wx; package MyFrame; use base qw(Wx::Frame); use Wx qw(wxDefaultPosition wxDefaultSize wxNO_FULL_REPAINT_ON_RESIZE wxCLIP_CHILDREN); use Wx::Event qw(EVT_BUTTON); my $self; sub new { my $ref =3D shift; $self =3D $ref->SUPER::new( undef, -1,=20 'Exit-Test', [50,50], [300, 200] ); $self->SetIcon( Wx::GetWxPerlIcon() ); =20 my $notebook =3D Wx::Notebook->new( $self,=20 -1,=20 wxDefaultPosition,=20 wxDefaultSize, =20 wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN ); my $panel_update =3D Wx::Panel->new( $notebook, -1 ); $notebook->AddPage( $panel_update, "Exit", 0 ); $panel_update->{button}{"killme"} =3D Wx::Button->new( = $panel_update, -1, 'killme', [75, 20], [150, -1] ); =20 EVT_BUTTON($panel_update, $panel_update->{button}{"Exit"}, sub {=20 #HERE THE APPLICATION SHOULD EXIT $panel_update->Destroy(); $notebook->Destroy(); $self->Destroy(); MyWindow->Killme(); #does the $frame->Destroy(); exit(); #doesn't work }); my $status =3D Wx::StatusBar->new( $self, -1 ); $status -> SetFieldsCount( 1 ); $status -> SetStatusText( "Program running!" ); $self->SetStatusBar($status);=20 return $self; } package MyWindow; use base qw(Wx::App); my $frame; sub OnInit { $frame =3D MyFrame->new; $frame->Show( 1 ); } sub Killme { $frame->Destroy();=20 } package main; my $wxobj =3D MyWindow->new(); $wxobj->MainLoop; ---- code end ---- Thanks,=20 Daniel ----- Urspr=FCngliche Mail ---- Von: Daniel <dan...@ya...> An: Daniell Freed <win...@gm...> CC: wxp...@li... Gesendet: Dienstag, den 6. Februar 2007, 09:39:55 Uhr Betreff: Re: [wxperl-users] How to quit an Wx application? Hi Daniell, thanks for your answer. I think I know what you mean but in fact I don't know how to do this. I made a sample script. It's like my application = but very small. So if you have time could you please be so kind and make it working? I think (or hope) it's easy for you. ---- begin code ---- #!/usr/bin/perl -w # use strict; use Wx; package MyFrame; use base qw(Wx::Frame); use Wx qw (wxDefaultPosition wxDefaultSize wxNO_FULL_REPAINT_ON_RESIZE wxCLIP_CHILDREN); use Wx::Event qw(EVT_BUTTON); my $self; sub new { my $ref =3D shift; $self =3D $ref->SUPER::new( undef, -1,=20 'Exit-Test', [50,50], [300, 200] ); $self->SetIcon( Wx::GetWxPerlIcon() ); =20 my $notebook =3D Wx::Notebook->new( $self,=20 -1,=20 wxDefaultPosition,=20 wxDefaultSize, =20 wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN ); my $panel_update =3D Wx::Panel->new( $notebook, -1, ); $notebook->AddPage( $panel_update, "Exit", 0 ); $panel_update->{button}{"install"} =3D Wx::Button->new( = $panel_update, -1, 'kill me', [75, 20], [150, -1], ); =20 EVT_BUTTON($panel_update, $panel_update->{button}{"Exit"}, sub {=20 #HERE THE APPLICATION SHOULD EXIT #$self->Destroy(); #$frame->Destroy(); doesn't know $frame here #exit(); #doesn't work }); my $status =3D Wx::StatusBar->new( $self, -1 ); $status -> SetFieldsCount( 1 ); $status -> SetStatusText( "Program running!" ); $self->SetStatusBar($status);=20 return $self; } package MyWindow; use base qw(Wx::App); sub OnInit { my $frame =3D MyFrame->new; $frame->Show( 1 ); } package main; my $wxobj =3D MyWindow->new(); $wxobj->MainLoop; ---- end code ---- Thanks!=20 Daniel ----- Urspr=FCngliche Mail ---- Von: Daniell Freed <win...@gm...> An: Daniel <dan...@ya...> CC: wxp...@li... Gesendet: Montag, den 5. Februar 2007, 23:48:26 Uhr Betreff: Re: [wxperl-users] How to quit an Wx application? You need to destroy any windows you have. Closing them doesn't actually destroy them from memory. =20 Once you are done with the window do: $frame->Destroy(); =20 Then you can exit(); =20 =20 Thanks, Dan Freed =20 =20 =20 On Feb 5, 2007, at 4:23 PM, Daniel wrote: Hi all, =20 I know, it sounds stupid but I don't know how to quit my application = from inside. =20 I used the following code: =20 package MyWindow; =20 use base qw(Wx::App); =20 =20 sub OnInit { my $frame =3D MyFrame->new; $frame->Show( 1 ); } =20 package main; my $wxobj =3D MyWindow->new(); =20 $wxobj->MainLoop; =20 In package MyWindow there is in function new defined: =20 $self =3D $ref->SUPER::new( undef, # parent window -1, # Window id "$title", # Titel [50,50], # Position x/y [950, 600] # Size x/y ); =20 So if I just do an exit() nothing happens but showing the waiting mouse pointer. Same if I use $self->Close(1); =20 Can someone help me please? =20 =20 Thanks Daniel =20 =20 =20 =20 =20 ___________________________________________________________=20 Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de =20 -------------------------------------------------------------------------= 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=3Dlnk <http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642> &kid=3D120709&bid=3D263057&dat=3D121642 _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users =20 Daniell Freed win...@gm... Bereshit bara Elohim et hashamayim ve'et ha'arets... =20 =20 =20 _____ =20 Der neue Internet Explorer 7 in deutscher Ausf=FChrung ist da <http://de.rd.yahoo.com/evt=3D44263/*http:/de.downloads.yahoo.com/interne= texpl orer/index.php> ! -------------------------------------------------------------------------= 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=3Dlnk <http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642> &kid=3D120709&bid=3D263057&dat=3D121642 _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users =20 =20 _____ =20 Was ist Gl=FCck? Schlafen Fische =FCberhaupt? Die Antworten gibt=92s auf = Yahoo! <http://de.rd.yahoo.com/xx/searchpromo/i/tagline/cleverfp/*http:/de.answe= rs. yahoo.com> Clever. |
From: Daniel <dan...@ya...> - 2007-02-06 14:33:27
|
Hi,=0A=0Aas far as I see, it is not easy to exit an application from inside= . I tried to destroy everything before the exit, but in fact it don't work.= ..=0A=0AMy (new) question: Isn't it possible to cause the same event as cli= cking on the "X" in the top right border? Why do I have to programm it agai= n, I think it's still done.=0A=0AI know your time is rare, but if anyone co= uld help me.....=0A=0AThe actual code ist like that:=0A=0A---- code start -= ---=0A=0A#!/usr/bin/perl -w=0A#=0A=0Ause strict;=0Ause Wx;=0A=0Apackage MyF= rame;=0Ause base qw(Wx::Frame);=0A=0Ause Wx qw(wxDefaultPosition wxDefaultS= ize wxNO_FULL_REPAINT_ON_RESIZE wxCLIP_CHILDREN);=0A=0Ause Wx::Event qw(EVT= _BUTTON);=0A=0Amy $self;=0A=0Asub new {=0A my $ref =3D shift;=0A=0A $= self =3D $ref->SUPER::new( undef,=0A -1, =0A= 'Exit-Test',=0A = [50,50],=0A [300, 200]=0A = );=0A=0A $self->SetIcon( Wx::GetWxPerlIcon() );=0A = =0A my $notebook =3D Wx::Notebook->new( $self, =0A = -1, =0A wxD= efaultPosition, =0A wxDefaultSize,=0A = wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN=0A= );=0A=0A my $panel_update =3D Wx::Pane= l->new( $notebook,=0A -1=0A = );=0A=0A $notebook->AddPage( $panel_update, "Exit", 0 );= =0A=0A=0A $panel_update->{button}{"killme"} =3D Wx::Button->new( $panel_= update,=0A -1,=0A = 'killme',=0A [75, 20],=0A = [150, -1]=0A = );=0A =0A EVT_BUTTON($panel_update, $panel_update->{button}{"Exi= t"}, sub { =0A=0A #HERE THE APPLICATION SHOULD EXIT=0A $panel_upd= ate->Destroy();=0A $notebook->Destroy();=0A $self->Destroy();=0A = MyWindow->Killme(); #does the $frame->Destroy();=0A exit(); #doe= sn't work=0A });=0A=0A my $status =3D Wx::StatusBar->new( $self, -1 )= ;=0A $status -> SetFieldsCount( 1 );=0A $status -> SetStatusText( "Pr= ogram running!" );=0A $self->SetStatusBar($status); =0A=0A return $se= lf;=0A}=0A=0Apackage MyWindow;=0Ause base qw(Wx::App);=0A=0Amy $frame;=0A= =0Asub OnInit {=0A $frame =3D MyFrame->new;=0A $frame->Show( 1 );=0A}=0A= =0Asub Killme {=0A $frame->Destroy(); =0A}=0A=0Apackage main;=0Amy $wxobj = =3D MyWindow->new();=0A$wxobj->MainLoop;=0A=0A---- code end ----=0A=0AThank= s, =0ADaniel=0A=0A=0A=0A=0A=0A=0A----- Urspr=FCngliche Mail ----=0AVon: Dan= iel <dan...@ya...>=0AAn: Daniell Freed <win...@gm...>=0ACC: = wxp...@li...=0AGesendet: Dienstag, den 6. Februar 200= 7, 09:39:55 Uhr=0ABetreff: Re: [wxperl-users] How to quit an Wx application= ?=0A=0AHi Daniell,=0A=0Athanks for your answer. I think I know what you mea= n but in fact I don't know how to do this. I made a sample script. It's lik= e my application but very small. So if you have time could you please be so= kind and make it working? I think (or hope) it's easy for you.=0A=0A---- b= egin code ----=0A=0A#!/usr/bin/perl -w=0A#=0A=0Ause strict;=0Ause Wx;=0A=0A= package MyFrame;=0A=0A=0Ause base qw(Wx::Frame);=0A=0Ause Wx qw (wxDefaultP= osition wxDefaultSize wxNO_FULL_REPAINT_ON_RESIZE wxCLIP_CHILDREN);=0A=0A= =0Ause Wx::Event qw(EVT_BUTTON);=0A=0Amy $self;=0A=0A=0Asub new {=0A my = $ref =3D shift;=0A=0A $self =3D $ref->SUPER::new(=0A undef,=0A = -1, =0A 'Exit-Test',= =0A [50,50],=0A = [300, 200]=0A =0A );=0A=0A $self->SetIcon( = Wx::GetWxPerlIcon() );=0A =0A my $notebook = =3D Wx::Notebook->new( $self, =0A -1, =0A = wxDefaultPosition, =0A = =0A wxDefaultSize,=0A wxNO_FU= LL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN=0A );= =0A=0A my $panel_update =3D Wx::Panel->new( $notebook,=0A = -1,=0A );=0A=0A $noteboo= k->AddPage(=0A $panel_update, "Exit", 0 );=0A=0A=0A $panel_update->{butt= on}{"install"} =3D Wx::Button->new( $panel_update,=0A = -1,=0A 'kill me',=0A = [75,=0A 20],=0A = [150, -1],=0A );=0A =0A EVT_BU= TTON($panel_update, $panel_update->{button}{"Exit"}, sub { =0A=0A #HER= E THE APPLICATION SHOULD EXIT=0A #$self->Destroy();=0A #$frame->D= estroy(); doesn't know $frame here=0A #exit(); #doesn't work=0A })= ;=0A=0A my $status =3D Wx::StatusBar->new( $self, -1 );=0A $status ->= SetFieldsCount( 1=0A );=0A $status -> SetStatusText( "Program running!"= );=0A $self->SetStatusBar($status); =0A=0A return $self;=0A}=0A=0Apa= ckage MyWindow;=0Ause base qw(Wx::App);=0A=0Asub OnInit {=0A my $frame =3D= MyFrame->new;=0A $frame->Show( 1 );=0A}=0A=0Apackage main;=0Amy $wxobj = =3D MyWindow->new();=0A$wxobj->MainLoop;=0A=0A---- end code ----=0A=0A=0A= =0AThanks! =0ADaniel=0A=0A=0A=0A=0A----- Urspr=FCngliche Mail ----=0AVon: D= aniell Freed <win...@gm...>=0AAn: Daniel <dan...@ya...>=0ACC= : wxp...@li...=0AGesendet: Montag, den 5. Februar 200= 7, 23:48:26 Uhr=0ABetreff: Re: [wxperl-users] How to quit an Wx application= ?=0A=0AYou need to destroy any windows you have. Closing them doesn't actu= ally destroy them from memory.=0A=0AOnce you are done with the window do: = $frame->Destroy();=0A=0A=0AThen you can exit(); =0A=0A=0AThanks,=0ADan Fre= ed=0A=0A=0A=0A=0A=0AOn Feb 5, 2007, at 4:23 PM, Daniel wrote:=0A=0AHi all,= =0A=0A=0AI know, it sounds stupid but I don't know how to quit my applicati= on from inside.=0A=0A=0AI used the following code:=0A=0A=0Apackage MyWindow= ; =0A =0Ause base qw(Wx::App); = =0A=0A=0Asub OnInit {=0A my $frame =3D MyFrame->new;=0A $frame->Show( = 1 );=0A}=0A=0A=0Apackage main;=0Amy $wxobj =3D MyWindow->new(); = =0A$wxobj->MainLoop;=0A=0A=0AIn=0A package MyWindow there is in function ne= w defined:=0A=0A=0A $self =3D $ref->SUPER::new( undef, # parent w= indow=0A -1, # Window id=0A = "$title", # Titel=0A = =0A [50,50], # Position x/y=0A [950,= 600] # Size x/y=0A );=0A=0A=0ASo if I just = do an exit() nothing happens but showing the waiting mouse pointer. Same if= I use=0A$self->Close(1);=0A=0A=0ACan someone help me please?=0A=0A=0A=0A= =0AThanks=0ADaniel=0A=0A=0A=0A=0A=0A=0A=0A=0A=09=09=0A=0A__________________= _________________________________________ =0ATelefonate ohne weitere Kosten= vom PC zum PC: http://messenger.yahoo.de=0A=0A=0A-------------------------= ------------------------------------------------=0AUsing Tomcat but need to= do more? Need to support web services, security?=0AGet stuff done quickly = with pre-integrated technology to make your job easier.=0ADownload IBM WebS= phere Application Server v.1.0.1 based on Apache Geronimo=0Ahttp://sel.as-u= s.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642=0A_______= ________________________________________=0Awxperl-users mailing list=0Awxpe= rl-...@li...=0Ahttps://lists.sourceforge.net/lists/listin= fo/wxperl-users=0A =0A=0A Daniell Freed=0Aw...@gm...=0ABereshit ba= ra Elohim et hashamayim ve'et ha'arets...=0A=0A=0A =0A=0A=0A=0A=0A=0A=0A=0A= =0A=09=09Der neue Internet Explorer 7 in deutscher Ausf=FChrung ist da=0A!-= ------------------------------------------------------------------------=0A= Using Tomcat but need to do more? Need to support web services, security?= =0AGet stuff done quickly with pre-integrated technology to make your job e= asier.=0ADownload IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263= 057&dat=3D121642=0A_______________________________________________=0Awxperl= -users mailing list=0Aw...@li...=0Ahttps://lists.so= urceforge.net/lists/listinfo/wxperl-users=0A=0A=0A=0A=0A=0A=0A=0A=09=09=0A_= __________________________________________________________ =0ATelefonate oh= ne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: Daniel <dan...@ya...> - 2007-02-06 08:40:04
|
Hi Daniell,=0A=0Athanks for your answer. I think I know what you mean but i= n fact I don't know how to do this. I made a sample script. It's like my ap= plication but very small. So if you have time could you please be so kind a= nd make it working? I think (or hope) it's easy for you.=0A=0A---- begin co= de ----=0A=0A#!/usr/bin/perl -w=0A#=0A=0Ause strict;=0Ause Wx;=0A=0Apackage= MyFrame;=0A=0A=0Ause base qw(Wx::Frame);=0A=0Ause Wx qw (wxDefaultPosition= wxDefaultSize wxNO_FULL_REPAINT_ON_RESIZE wxCLIP_CHILDREN);=0A=0A=0Ause Wx= ::Event qw(EVT_BUTTON);=0A=0Amy $self;=0A=0A=0Asub new {=0A my $ref =3D = shift;=0A=0A $self =3D $ref->SUPER::new( undef,=0A = -1, =0A 'Exit-Test',=0A = [50,50],=0A [300, 200]= =0A );=0A=0A $self->SetIcon( Wx::GetWxPerlIco= n() );=0A =0A my $notebook =3D Wx::Notebook->= new( $self, =0A -1, =0A = wxDefaultPosition, =0A wxDe= faultSize,=0A wxNO_FULL_REPAINT_ON_RESIZE|= wxCLIP_CHILDREN=0A );=0A=0A my $panel_u= pdate =3D Wx::Panel->new( $notebook,=0A -1,= =0A );=0A=0A $notebook->AddPage( $panel_u= pdate, "Exit", 0 );=0A=0A=0A $panel_update->{button}{"install"} =3D Wx::= Button->new( $panel_update,=0A -1,=0A = 'kill me',=0A = [75, 20],=0A [150, -1],=0A = );=0A =0A EVT_BUTTON($panel_update, $panel= _update->{button}{"Exit"}, sub { =0A=0A #HERE THE APPLICATION SHOULD E= XIT=0A #$self->Destroy();=0A #$frame->Destroy(); doesn't know $fr= ame here=0A #exit(); #doesn't work=0A });=0A=0A my $status =3D = Wx::StatusBar->new( $self, -1 );=0A $status -> SetFieldsCount( 1 );=0A = $status -> SetStatusText( "Program running!" );=0A $self->SetStatusBar= ($status); =0A=0A return $self;=0A}=0A=0Apackage MyWindow;=0Ause base qw= (Wx::App);=0A=0Asub OnInit {=0A my $frame =3D MyFrame->new;=0A $frame->Sh= ow( 1 );=0A}=0A=0Apackage main;=0Amy $wxobj =3D MyWindow->new();=0A$wxobj->= MainLoop;=0A=0A---- end code ----=0A=0A=0A=0AThanks! =0ADaniel=0A=0A=0A=0A= =0A----- Urspr=FCngliche Mail ----=0AVon: Daniell Freed <win...@gm...= m>=0AAn: Daniel <dan...@ya...>=0ACC: wxp...@li...urceforge= .net=0AGesendet: Montag, den 5. Februar 2007, 23:48:26 Uhr=0ABetreff: Re: [= wxperl-users] How to quit an Wx application?=0A=0AYou need to destroy any w= indows you have. Closing them doesn't actually destroy them from memory.= =0A=0AOnce you are done with the window do: $frame->Destroy();=0A=0A=0AThe= n you can exit(); =0A=0A=0AThanks,=0ADan Freed=0A=0A=0A=0A=0A=0AOn Feb 5, = 2007, at 4:23 PM, Daniel wrote:=0A=0AHi all,=0A=0A=0AI know, it sounds stup= id but I don't know how to quit my application from inside.=0A=0A=0AI used = the following code:=0A=0A=0Apackage MyWindow; =0A= use base qw(Wx::App); =0A=0A=0Asub OnInit {=0A my $f= rame =3D MyFrame->new;=0A $frame->Show( 1 );=0A}=0A=0A=0Apackage main;=0Am= y $wxobj =3D MyWindow->new(); =0A$wxobj->MainLoop;=0A=0A=0AIn pack= age MyWindow there is in function new defined:=0A=0A=0A $self =3D $ref->= SUPER::new( undef, # parent window=0A = -1, # Window id=0A "$title", # T= itel=0A [50,50], # Position x/y=0A = [950, 600] # Size x/y=0A = );=0A=0A=0ASo if I just do an exit() nothing happens but showing t= he waiting mouse pointer. Same if I use=0A$self->Close(1);=0A=0A=0ACan some= one help me please?=0A=0A=0A=0A=0AThanks=0ADaniel=0A=0A=0A=0A=0A=0A=0A=0A= =0A=09=09=0A=0A___________________________________________________________ = =0ATelefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de= =0A=0A=0A------------------------------------------------------------------= -------=0AUsing Tomcat but need to do more? Need to support web services, s= ecurity?=0AGet stuff done quickly with pre-integrated technology to make yo= ur job easier.=0ADownload IBM WebSphere Application Server v.1.0.1 based on= Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&b= id=3D263057&dat=3D121642=0A_______________________________________________= =0Awxperl-users mailing list=0Aw...@li...=0Ahttps:/= /lists.sourceforge.net/lists/listinfo/wxperl-users=0A =0A=0A Daniell Freed= =0Aw...@gm...=0ABereshit bara Elohim et hashamayim ve'et ha'arets.= ..=0A=0A =0A=0A=0A=0A=0A=0A=0A=0A=0A=09=09=0A______________________________= _____________________________ =0ATelefonate ohne weitere Kosten vom PC zum = PC: http://messenger.yahoo.de |
From: Daniell F. <win...@gm...> - 2007-02-05 22:48:37
|
You need to destroy any windows you have. Closing them doesn't actually destroy them from memory. Once you are done with the window do: $frame->Destroy(); Then you can exit(); Thanks, Dan Freed On Feb 5, 2007, at 4:23 PM, Daniel wrote: > Hi all, > > I know, it sounds stupid but I don't know how to quit my > application from inside. > > I used the following code: > > package MyWindow; > use base qw(Wx::App); > > sub OnInit { > my $frame = MyFrame->new; > $frame->Show( 1 ); > } > > package main; > my $wxobj = MyWindow->new(); > $wxobj->MainLoop; > > In package MyWindow there is in function new defined: > > $self = $ref->SUPER::new( undef, # parent window > -1, # Window id > "$title", # Titel > [50,50], # Position x/y > [950, 600] # Size x/y > ); > > So if I just do an exit() nothing happens but showing the waiting > mouse pointer. Same if I use > $self->Close(1); > > Can someone help me please? > > > Thanks > Daniel > > > > > > ___________________________________________________________ > Telefonate ohne weitere Kosten vom PC zum PC: http:// > messenger.yahoo.de > > ---------------------------------------------------------------------- > --- > 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 Daniell Freed win...@gm... Bereshit bara Elohim et hashamayim ve'et ha'arets... |
From: Daniel <dan...@ya...> - 2007-02-05 22:23:37
|
Hi all,=0A=0AI know, it sounds stupid but I don't know how to quit my appli= cation from inside.=0A=0AI used the following code:=0A=0Apackage MyWindow; = =0Ause base qw(Wx::App); = =0A=0Asub OnInit {=0A my $frame =3D MyFrame->new;=0A $frame->Show( 1 );= =0A}=0A =0Apackage main;=0Amy $wxobj =3D MyWindow->new(); =0A$wxob= j->MainLoop;=0A =0AIn package MyWindow there is in function new defined:=0A= =0A $self =3D $ref->SUPER::new( undef, # parent window=0A = -1, # Window id=0A = "$title", # Titel=0A [50,50], = # Position x/y=0A [950, 600] # Size x/= y=0A );=0A=0ASo if I just do an exit() nothing h= appens but showing the waiting mouse pointer. Same if I use=0A$self->Close(= 1);=0A=0ACan someone help me please?=0A=0A=0AThanks=0ADaniel=0A=0A=0A=0A=0A= =09=09=0A___________________________________________________________ =0ATel= efonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: Mark D. <mar...@zn...> - 2007-02-01 00:10:43
|
Andrew, I don't use MingW myself, but: DON'T use the MSYS / configure approach. I believe the make command you want is mingw32-make Take a look in the Alien::wxWidgets sources in the directory ../patches You may be interested in applying the equivalent of the 2.6.3 patches to the 2.8.0 source for the 3 files: wxMSW-2.6.3-config.patch wxMSW-2.6.3-makefiles.patch wxMSW-2.6.3-setup.patch Alas, I do not think they can be applied directly with patch to the 2.8.0 source, but you could check. I am pretty certain that apart from using mingw32-make, you have the important prerequisite in ExtUtils::FakeConfig and it should all just work for you. I am also sure that if you search the wxPerl list there is at least one recent thread on the very subject of compiling with mingw32. If you just want to use Wx rather than compiling your own, there are 2.8.0 / 0.67 / 0.27 ppms at http://www.cava.co.uk/freetools/wxperl.html. Good Luck Mark Andrew wrote: > Hi, > I am having a few problems compiling wxPerl, and I was wondering if > someone on this list could provide any help, perhaps by spotting > something very simple that I am doing wrong. > I am using the following software: > > ActivePerl 5.8.6 (build 811) > MinGW 5.0.3 > MSYS 1.0.10 > nmake 1.50 > dmake 2006-06-16 (you can never have enough make programs, apparently) > ExtUtils::FakeConfig 0.05 > wxPerl 0.67 (sources) > wxWidgets-2.8.0 (sources) > Alien::wxWidgets 0.27 (sources) > > I have included some attachments: > wxwidgets_make.txt make output trying to build wxwidgets > wxwidgets_libraries.txt The libraries I built under > wxwidgets-2.8.0/lib > msw_2_8_0_gcc_3_4.pm generated by Alien-wxWidgets-0.27.hax0red > wx-0.67_make.txt make output trying to build Wx-0.67 > Win32_hack.patch patch for > Alien-wxWidgets-0.27/inc/My/Build/Win32.pm > > ###################################################################### > # wxwidgets > > in docs/msw/install.txt under the MinGW section, it says: > > # NOTE: The makefile.gcc makefiles are for compilation under MinGW using > # Windows command interpreter (command.com/cmd.exe), they won't > work in > # other environments (such as UNIX or Unix-like, e.g. MSYS where > you have > # to use configure instead, see the section below) > # > # > cd c:\wx\build\msw > # > make -f makefile.gcc BUILD=debug > > The problem with this is I don't have a 'make' under windows. I have > 'dmake' > and 'nmake', and a C:\msys\1.0\bin\make.exe (but that is part of > MSYS). none of those seemed to work. See attachment > "wxwidgets_make.txt". > > So then I tried the configure script approach under MinGW: > >> export WXDIR=/d/build/wxWidgets-2.8.0 >> cd $WXDIR >> ./configure --with-msw --enable-shared --enable-optimise >> --prefix=/d/opt/wxWidgets-2.8.0 >> make >> make install >> cd contrib/src/stc >> make >> make install > > This worked. See attachment "wxwidgets_libraries.txt" for the files > that were > build under $WXDIR/lib/. > > ###################################################################### > # Alien::wxWidgets: > > (in a dos shell) >> set WXDIR=D:\build\wxWidgets-2.8.0 >> set PERL5OPT=-MConfig_m >> set PATH=D:\opt\wxWidgets-2.8.0\bin;%PATH% >> perl Build.PL --with-msw --enable-shared --enable-optimise > Do you want to build wxWidgets? [no] > no > >> perl Build > Configuration error: could not find libraries for configuration: '' > '28' at inc/My/Build/Win32.pm line 73. > > It seems the wxwidgets supplied makefiles (makefile.gcc etc) build > libraries in > different places (lib/gcc_dll) than the makefiles generated by configure > (lib). > Also the files must be named slightly differently, as the logic in Win32.pm > didn't find them even when i copied them to the place it was expecting > (lib/gcc_dll). > > (copying wxwidgets files to the places they are expected, under MinGW) >> cd $WXDIR >> mkdir lib/gcc_dll >> cp lib/*.dll lib/*.a lib/gcc_dll >> mkdir -p lib/gcc_dll/msw/wx >> cp lib/wx/include/msw-ansi-release-2.8/wx/setup.h lib/gcc_dll/msw/wx/ > > I then made nasty hacks to Win32.pm (see attachment "Win32_hack.patch") and > then ended up with Alien-wxWidgets-0.27.hax0red. The config generated > by this > is also attached - but I suspect there's something wrong with it. see > attachment "msw_2_8_0_gcc_3_4.pm". > > ###################################################################### > # wxPerl > > (in a dos shell) >> cd D:\build\Wx-0.67 >> set PERL5OPT=-MConfig_m >> set WXDIR=D:\build\wxWidgets-2.8.0 >> perl Makefile.PL PREFIX=Y:\Wx-2.8.0-0.67 > > here I get many "Note (probably harmless): No library found for -l*" > warnings > >> dmake > > here I get a fatal error: > C:/Perl/lib/CORE/win32.h:219: error: redeclaration of C++ built-in type > `int' > C:/Perl/lib/CORE/win32.h:220: error: redeclaration of C++ built-in type > `int' > > Those lines are: > typedef long uid_t; > typedef long gid_t; > > so I commented those lines out and tried again. > >> dmake > > see attachment "wx-0.67_make.txt" for the output. It looks like the > relevant > wxwidgets dll or .a is not being passed to g++, so there are undefined > references. I suspect this is because my hacked version of > Alien::wxWidgets > has generated an erroneous config file? I have tried disabling > components, eg > perl Makefile.PL --disable-richtext but I run into similar errors > (undefined > references) with everything. > > Any suggestions or help you can provide would be much appreciated (about > any > stage of the process). > > cheers, > Andrew > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > 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 |