You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(12) |
Aug
(34) |
Sep
(14) |
Oct
(36) |
Nov
(32) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(9) |
Mar
(31) |
Apr
(36) |
May
(17) |
Jun
(21) |
Jul
(13) |
Aug
(18) |
Sep
(2) |
Oct
(10) |
Nov
(18) |
Dec
(28) |
2005 |
Jan
(26) |
Feb
(15) |
Mar
(26) |
Apr
(11) |
May
(60) |
Jun
(3) |
Jul
(12) |
Aug
(4) |
Sep
(12) |
Oct
(19) |
Nov
(36) |
Dec
(10) |
2006 |
Jan
(6) |
Feb
(13) |
Mar
(6) |
Apr
(2) |
May
(9) |
Jun
(3) |
Jul
(6) |
Aug
(13) |
Sep
(1) |
Oct
(24) |
Nov
(33) |
Dec
(47) |
2007 |
Jan
(21) |
Feb
(41) |
Mar
(17) |
Apr
(9) |
May
(4) |
Jun
(20) |
Jul
(24) |
Aug
(71) |
Sep
(35) |
Oct
(10) |
Nov
(39) |
Dec
(39) |
2008 |
Jan
(24) |
Feb
(42) |
Mar
(61) |
Apr
(12) |
May
(11) |
Jun
(4) |
Jul
(9) |
Aug
(6) |
Sep
(6) |
Oct
(4) |
Nov
(3) |
Dec
(14) |
2009 |
Jan
(25) |
Feb
(18) |
Mar
(19) |
Apr
(24) |
May
(14) |
Jun
(7) |
Jul
(14) |
Aug
(25) |
Sep
(40) |
Oct
(20) |
Nov
(22) |
Dec
(4) |
2010 |
Jan
(55) |
Feb
(11) |
Mar
(9) |
Apr
(10) |
May
(10) |
Jun
(9) |
Jul
(7) |
Aug
(4) |
Sep
(15) |
Oct
(7) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(2) |
Feb
(1) |
Mar
(4) |
Apr
(6) |
May
(20) |
Jun
(30) |
Jul
(15) |
Aug
(4) |
Sep
(23) |
Oct
(24) |
Nov
(3) |
Dec
(8) |
2012 |
Jan
(23) |
Feb
(7) |
Mar
(19) |
Apr
(48) |
May
(8) |
Jun
(27) |
Jul
(10) |
Aug
(1) |
Sep
(11) |
Oct
(1) |
Nov
|
Dec
(3) |
2013 |
Jan
(1) |
Feb
|
Mar
(17) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(12) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
2015 |
Jan
|
Feb
|
Mar
(14) |
Apr
(5) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
(2) |
Dec
(1) |
2016 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Mads L. <mad...@ya...> - 2009-04-10 23:57:47
|
Hi Eric Kow wrote: > This is where Kevin Ollivier of wxWidgets pointed out something > interesting: in the current wxWidgets trunk, it should be possible to > automatically generate the C bindings from the Doxygen XML output. In > fact, he has already done something similar for Python, metadata to > Python objects: .... > > Now that wxHaskell 0.11 has been released with wxWidgets 2.8 support, is > it time to take this back-end stuff more seriously? It sounds like what > one of us could do is hack up a quick XSLT sheet or something similar to > produce the C bindings. Maybe a HaXml program as a prototype? I have never done any XSLT programming before (have done some XPath though), but still thought I would give it a try. I have attached the XSL program and the output. The XSLT program is nowhere near finished, just a beginning to see if it is a path worth pursuing. And to get feedback... Besides the overly verbose syntax, I did not feel like XSLT were a good match for the task. It was hard to factor out common patterns - aka. the composability of XSLT seems poor. But this may just be my lack of experience with XSLT. If I could have done something smarter I am all ears. I used to Saxon 8.8J for processing. Greetings, Mads Lindstrøm |
From: Eric Y. K. <eri...@gm...> - 2009-04-10 22:51:28
|
Thanks, Kevin! I'm just forwarding to wxhaskell-users in case Mads has a reply :-) I'll note that in the body of my message, I only cut and paste a small extract of the output. Maybe this is what Mads was referring to? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Mads L. <mad...@ya...> - 2009-04-10 16:44:18
|
Hi Eric Kow wrote: > On Thu, Apr 09, 2009 at 18:57:29 +0100, Eric Kow wrote: > > This is where Kevin Ollivier of wxWidgets pointed out something > > interesting: in the current wxWidgets trunk, it should be possible to > > automatically generate the C bindings from the Doxygen XML output. In > > fact, he has already done something similar for Python, metadata to > > Python objects: > > > > http://trac.wxwidgets.org/browser/wxWidgets/trunk/docs/doxygen/doxymlparser.py > > Following up on this, I did > > svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets > cd wxWidgets/doc/doxygen > ./regen.sh > python doxymlparser.py --report out/xml/classwx_button.xml > > Attached is the XML file (input) and the output of this script. > I had a quick look at the output and it seems to have some shortcomings. The output has only one constructor, whereas the input XML has two. Many of the return types also seems missing. Eg. Method: GetLabel Return Type: Params: [] Prototype: wxString wxButton::GetLabel() const Brief Description: Regarding the return type, we could parse the prototype string and ignore the "Return type". Greetings, Mads Lindstrøm |
From: Mads L. <mad...@ya...> - 2009-04-10 10:19:40
|
Hi Eric Kow wrote: > I'm vaguely aware that our copy of wxc has some information which helps > us keep track of the wxWidgets class hierarchy. Presumably the same > information could be autogenerated as well? This sort of thing has been > suggested before (people have mentioned SWIG). > It seems that the SWIG team is in the process of making a C++ -> C binding, see: http://www.nabble.com/C%2B%2B-to-C-td22947590.html It is still in development and I do not know if it is (will become) usable for us. Greetings, Mads Lindstrøm |
From: Jason D. <jas...@gm...> - 2009-04-10 05:17:31
|
2009/04/09 FFT <ff...@gm...>: > I noticed that even simple WX demos like "Layout" are linked > dynamically against 59 libraries on Linux. This would make > distributing the binaries a nightmare. Is there a simple way > to make a (mostly) statically linked binary? I have had mixed success with `-static -optl-static` (as recommended in "Practical Web Programming in Haskell" page, for example). On Macs, it's hard to get it to work (have never bothered); on Linux, I remember I had to remove it on once occasion to get things to work across Ubuntu and Gentoo (had to do with differences in libc, I believe, but I did not retain notes). Maybe passing in the specific libs to the linker with `-optl` is the best bet? -- Jason Dusek |...Practical Web Programming in Haskell...| http://www.haskell.org/haskellwiki/Practical_web_programming_in_Haskell#Compiling_and_running_web_applications |
From: Eric K. <eri...@gm...> - 2009-04-09 19:23:57
|
Hi FFT, I'm just CC'ing wxhaskell-users so they see this question. Thanks! On Thu, 9 Apr 2009 04:13:18 -0700, FFT wrote > I noticed that even simple WX demos like "Layout" are linked > dynamically against 59 libraries on Linux. This would make > distributing the binaries a nightmare. Is there a simple way to make a > (mostly) statically linked binary? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Kevin O. <ke...@th...> - 2009-04-09 19:14:28
|
Hi Eric, On Apr 9, 2009, at 11:18 AM, Eric Kow wrote: > On Thu, Apr 09, 2009 at 18:57:29 +0100, Eric Kow wrote: >> This is where Kevin Ollivier of wxWidgets pointed out something >> interesting: in the current wxWidgets trunk, it should be possible to >> automatically generate the C bindings from the Doxygen XML output. >> In >> fact, he has already done something similar for Python, metadata to >> Python objects: >> >> http://trac.wxwidgets.org/browser/wxWidgets/trunk/docs/doxygen/doxymlparser.py > > Following up on this, I did > > svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk > wxWidgets > cd wxWidgets/doc/doxygen > ./regen.sh > python doxymlparser.py --report out/xml/classwx_button.xml > > Attached is the XML file (input) and the output of this script. > > Here is a small extract of the output: > > Class: wxButton > Bases: wxControl > Inlcudes: [] > Brief Description: > > And... > > Method: SetLabel > Return Type: void > Params: [{u'type': u'const&', u'declname': u'label'}] > Prototype: void wxButton::SetLabel(const wxString &label) > Brief Description: > > What can we do with this? As a start, with a few lines of Python code after the doxyparser.parse(file) calls in the script, you can do something like: # start code to autogenerate wxc.h wxc_header = "" for aclass in doxyparse.classes: for amethod in methods: self_ref = "TSelf" if amethod.name == "Create": self_ref = "TClass" wxc_header += "%s(%s) " % (self_ref, aclass.name) else: wxc_header += "%s " % (wxc_type_for_type(amethod.return_type) wxc_header += "%s_%s( %s _obj" % (aclass.name, amethod.name, self_ref + (" + aclass.name + ")") for param in amethod.params: wxc_header += ", %s %s" % (wxc_type_for_type(param["type"]), "_" + param["declname"]) # Note: uncomment this if you support adding default values # if "defval" in param: # wxc_header += "=" + param["defval"] wxc_header += " );\n" wxc_file = open("wxc.h", "wb") wxc_file.write(wxc_header) wxc_file.close() # end code This is all just pseudo-code, and methods like wxc_type_for_type would need implemented, and you'd also need to probably work out some special logic for constructors, a list of classes to exclude, etc. but this should give you an idea of how to start things off. Ideally you'd actually have your own generate_c_bindings.py file that does an "import doxyparser", then runs "doxyparse.parse()" itself rather than extending the doxymlparser.py script, but anyway, just some ideas. Regards, Kevin > -- > Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> > PGP Key ID: 08AC04F9 > <classwx_button.xml><wx-button.out> |
From: Eric K. <eri...@gm...> - 2009-04-09 18:18:26
|
On Thu, Apr 09, 2009 at 18:57:29 +0100, Eric Kow wrote: > This is where Kevin Ollivier of wxWidgets pointed out something > interesting: in the current wxWidgets trunk, it should be possible to > automatically generate the C bindings from the Doxygen XML output. In > fact, he has already done something similar for Python, metadata to > Python objects: > > http://trac.wxwidgets.org/browser/wxWidgets/trunk/docs/doxygen/doxymlparser.py Following up on this, I did svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets cd wxWidgets/doc/doxygen ./regen.sh python doxymlparser.py --report out/xml/classwx_button.xml Attached is the XML file (input) and the output of this script. Here is a small extract of the output: Class: wxButton Bases: wxControl Inlcudes: [] Brief Description: And... Method: SetLabel Return Type: void Params: [{u'type': u'const&', u'declname': u'label'}] Prototype: void wxButton::SetLabel(const wxString &label) Brief Description: What can we do with this? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Eric K. <eri...@gm...> - 2009-04-09 17:57:41
|
Hi everybody, I've recently been thinking about ways we would make the wxhaskell installation process less painful. My desire is for the "cabal install" part of the process to be completely painless. Right now, the wxcore process is slow, complicated and doesn't work for the user package database (which means you can't just cabal install any old program that uses wxhaskell). What I hope we can do is to segregate all the slow and painful stuff into C land (using standard stuff like autotools), keeping the Haskell-y bits nice and smooth. I think this will reduce the net pain because then people can just think in terms of (1) installing all the backend stuff like wxWidgets and (2) cabal install. A second desire would be for us to get rid of our wxc code altogether and move it to its own project? WXC is shared by wxHaskell, wxOcaml and wxEiffel, but we all have our own variants of the code. There was a wxc project, but it seems to have gone dead. I've remarked on #wxwidgets that it would be great if the wxWidgets team to take over the WXC project so that it would be more actively maintained. This is where Kevin Ollivier of wxWidgets pointed out something interesting: in the current wxWidgets trunk, it should be possible to automatically generate the C bindings from the Doxygen XML output. In fact, he has already done something similar for Python, metadata to Python objects: http://trac.wxwidgets.org/browser/wxWidgets/trunk/docs/doxygen/doxymlparser.py This makes me wonder: can we do something similar for wxHaskell or wxc? What if wxc was generated in the same fashion? Instead of having this be some whole other project, why not make it ridiculously easy for the wxWidgets team to just ship a C interface around wxWidgets? I'm vaguely aware that our copy of wxc has some information which helps us keep track of the wxWidgets class hierarchy. Presumably the same information could be autogenerated as well? This sort of thing has been suggested before (people have mentioned SWIG). Now that wxHaskell 0.11 has been released with wxWidgets 2.8 support, is it time to take this back-end stuff more seriously? It sounds like what one of us could do is hack up a quick XSLT sheet or something similar to produce the C bindings. Maybe a HaXml program as a prototype? What should we do next? Thanks! -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9 |
From: Henk-Jan v. T. <hj...@ch...> - 2009-03-30 09:41:54
|
On Mon, 30 Mar 2009 07:09:25 +0200, Benjamin L.Russell <Dek...@ya...> wrote: > This sounds entertaining, but according to the HaskellWiki entry for > GuiTV (see http://haskell.org/haskellwiki/GuiTV), "wxHaskell ... can > be difficult to install." > > Has this difficulty been resolved? I am somewhat hesitant to install > wxHaskell because of this reported difficulty. Has anybody had any > recent difficulties in installing this package combination on Windows > XP Professional, Service Pack 2? > > -- Benjamin L. Russell It is quite easy to install the binary package [1]; I installed it on a Windows XP Home, Service Pack 3, system. [1] http://www.haskell.org/haskellwiki/WxHaskell/Download#Binary_packages -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Benjamin L. R. <Dek...@Ya...> - 2009-03-30 05:50:13
|
On Fri, 27 Mar 2009 15:34:06 +0100, "Henk-Jan van Tuyl" <hj...@ch...> wrote: >On Thu, 26 Mar 2009 20:41:57 +0100, Henk-Jan van Tuyl <hj...@ch...> >wrote: > >> >> Your space ship enters an asteroid belt, try to avoid >> collisions! >> >> wxAsteroids is a game demonstrating the wxHaskell GUI. >> >> More about this at: >> http://www.haskell.org/haskellwiki/wxAsteroids > >Maybe I should add more informationn to this: > >The main purpose of this game is to learn how to use wxHaskell; it >also shows, in the main function, how a cabalized program can find its >data files. > >I don't want to take the credit for this program; I took the source code >and images from the paper: > wxHaskell - A Portable and Concise GUI Library for Haskell [1] >by Daan Leijen. If you want to learn how to use wxHaskell, I can advise >you to read this paper. > >Daan gave me permission to publish the code with a BSD license. > >[1] http://legacy.cs.uu.nl/daan/download/papers/wxhaskell.pdf This sounds entertaining, but according to the HaskellWiki entry for GuiTV (see http://haskell.org/haskellwiki/GuiTV), "wxHaskell ... can be difficult to install." Has this difficulty been resolved? I am somewhat hesitant to install wxHaskell because of this reported difficulty. Has anybody had any recent difficulties in installing this package combination on Windows XP Professional, Service Pack 2? -- Benjamin L. Russell -- Benjamin L. Russell / DekuDekuplex at Yahoo dot com http://dekudekuplex.wordpress.com/ Translator/Interpreter / Mobile: +011 81 80-3603-6725 "Furuike ya, kawazu tobikomu mizu no oto." -- Matsuo Basho^ |
From: Henk-Jan v. T. <hj...@ch...> - 2009-03-27 14:34:30
|
On Thu, 26 Mar 2009 20:41:57 +0100, Henk-Jan van Tuyl <hj...@ch...> wrote: > > Your space ship enters an asteroid belt, try to avoid > collisions! > > wxAsteroids is a game demonstrating the wxHaskell GUI. > > More about this at: > http://www.haskell.org/haskellwiki/wxAsteroids Maybe I should add more informationn to this: The main purpose of this game is to learn how to use wxHaskell; it also shows, in the main function, how a cabalized program can find its data files. I don't want to take the credit for this program; I took the source code and images from the paper: wxHaskell - A Portable and Concise GUI Library for Haskell [1] by Daan Leijen. If you want to learn how to use wxHaskell, I can advise you to read this paper. Daan gave me permission to publish the code with a BSD license. [1] http://legacy.cs.uu.nl/daan/download/papers/wxhaskell.pdf -- Met vriendelijke groet, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Henk-Jan v. T. <hj...@ch...> - 2009-03-26 19:42:05
|
Your space ship enters an asteroid belt, try to avoid collisions! wxAsteroids is a game demonstrating the wxHaskell GUI. More about this at: http://www.haskell.org/haskellwiki/wxAsteroids -- Met vriendelijke groet, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Miguel V. <jmv...@di...> - 2009-03-26 12:12:53
|
Hi Eric, If you are getting this error message on Windows > "The application could not be properly initialized, click on OK to > terminate the application". > > Error Code: "0xc0150002". I had the same problem in the past and this solution, pointed to me in this mailing list, solved the issue. Okay. How about install Microsoft Visual C++ 2008 SP1 Redistributable Package? http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en Best Miguel Vilaça Em 2009/03/25, às 19:33, Eric escreveu: > Hi all, > > When I try to run the program: > > import Graphics.UI.WX > main = start $ do{f <- frame []; return()} > I get the error: The application failed to initialise properly. > (0xc0150002). > > Thanks, > Eric > > > ------------------------------------------------------------------------------ > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users |
From: Eric <er...@ma...> - 2009-03-25 19:33:59
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi all,<br> <br> When I try to run the program:<br> <br> <blockquote>import Graphics.UI.WX<br> main = start $ do{f <- frame []; return()}<br> </blockquote> I get the error: The application failed to initialise properly. (0xc0150002).<br> <br> Thanks,<br> Eric<br> <br> <br> </body> </html> |
From: Jeremy O'D. <jer...@gm...> - 2009-03-11 13:22:11
|
Hi Alex, Sorry for the slow reply. I don't have access to a Mac to look into the problem - but forwarding to the wxHaskell users list, as someone will probably know the answer. Best regards jeremy On Tue, 03 Mar 2009 14:08 +0100, "Alex Gerdes" <ale...@ou...> wrote: > Hello Jeremy, > > I am trying to get wxHaskell (version 0.11) installed on my computer > (a MacBook with Leopard). Unfortunately the steps presented on the > wxHaskell website don't work for me. Both wxWidgets (wxMac with > unicode enabled), wxcore and wx compile and install correctly, > however, when I try to build a program from the samples directory, e.g.: > > ghc --make -package wx -o bounce BouncingBalls.hs > > I get all kinds of link errors, to mention just a few: > > _sstu_info in libHSwx-0.11.1.0.a(Controls.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziControls_a12_srt in > libHSwx-0.11.1.0.a(Controls.o) > > "_wxcorezm0zi11zi1zi0_GraphicsziUIziWXCoreziWxcClassesMZZ_windowGetRect_closure > ", referenced from: > _wxzm0zi11zi1zi0_GraphicsziUIziWXziWindow_a54_info in > libHSwx-0.11.1.0.a(Window.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziWindow_a54_srt in > libHSwx-0.11.1.0.a(Window.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziWindow_area_closure in > libHSwx-0.11.1.0.a(Window.o) > > "_wxcorezm0zi11zi1zi0_GraphicsziUIziWXCoreziTypes_colorSystem_closure > ", referenced from: > _wxzm0zi11zi1zi0_GraphicsziUIziWXziFrame_a_info in > libHSwx-0.11.1.0.a(Frame.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziFrame_a_srt in > libHSwx-0.11.1.0.a(Frame.o) > > "_wxcorezm0zi11zi1zi0_GraphicsziUIziWXCoreziWxcClassesMZZ_menuItemSetCheckable_closure > ", referenced from: > _skBD_info in libHSwx-0.11.1.0.a(Menu.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziMenu_w3_info in > libHSwx-0.11.1.0.a(Menu.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziMenu_a28_srt in > libHSwx-0.11.1.0.a(Menu.o) > _wxzm0zi11zi1zi0_GraphicsziUIziWXziMenu_w3_srt in > libHSwx-0.11.1.0.a(Menu.o) > ld: symbol(s) not found > collect2: ld returned 1 exit status > > I have tried several options (compiled wxWidgets with and without > opengl and sdl, tried the latest version fo wxhaskell from the darcs > repository) and googled for a solution, but I am stuck for now. Could > you help me out? Or point me to the right spot to get help? > > Thanks in advance. > > Best regards, > > Alex Gerdes > > > > > -- > PhD candidate - School of Computer Science - Open Universiteit > Nederland > > Address: Valkenburgerweg 177, 6419 AT Heerlen > Phone: +31 45 5762888 or +31 30 253 9207 > Private: +31 591 610421 > Mobile: +31 653250643 > > E-mail: ale...@ou... > Website: http://www.haksell.org or > http://www.cs.uu.nl/staff/alex.html > > > > > > > > > > -- Jeremy O'Donoghue jer...@gm... |
From: Henk-Jan v. T. <hj...@ch...> - 2009-03-10 23:40:06
|
On Tue, 10 Mar 2009 23:13:20 +0100, Eric <er...@ma...> wrote: > I wish to insert text into a text control at the cursor. I think you can find your answer here: http://article.gmane.org/gmane.comp.lang.haskell.wxhaskell.general/357 -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Bernd H. <ber...@ic...> - 2009-03-10 23:27:16
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hi Eric,<br> <br> textCtrlWriteText should do:<br> <br> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><b>textCtrlWriteText</b><span class="Apple-converted-space"> </span>::<span class="Apple-converted-space"> </span><a href="Graphics-UI-WXCore-WxcClassTypes.html#t%3ATextCtrl" style="color: rgb(0, 0, 224); text-decoration: none;">TextCtrl</a><span class="Apple-converted-space"> </span>a -><span class="Apple-converted-space"> </span><a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Char.html#t%3AString" style="color: rgb(0, 0, 224); text-decoration: none;">String</a><span class="Apple-converted-space"> </span>-><span class="Apple-converted-space"> </span><a href="http://www.haskell.org/ghc/docs/latest/html/libraries/base/System-IO.html#t%3AIO" style="color: rgb(0, 0, 224); text-decoration: none;">IO</a><span class="Apple-converted-space"> </span>()<br> <br> </span>The wxWidgets documentation states:<br> <br> wxTextCtrl::WriteText<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 19px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><br> </span>Writes the text into the text control at the current insertion position.<br> <br> Best regards,<br> Bernd <br> <br> Eric schrieb: <blockquote cite="mid:49B...@ma..." type="cite"> <pre wrap="">Dear all, I wish to insert text into a text control at the cursor. I've started with the following code: i <- textCtrlGetInsertionPoint editor but looking at the module Graphics.UI.WXCore.WxcClassesMZ I can't find an action to insert text. Can anyone help? Eric ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. <a class="moz-txt-link-freetext" href="http://p.sf.net/sfu/www-adobe-com">http://p.sf.net/sfu/www-adobe-com</a> _______________________________________________ wxhaskell-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:wxh...@li...">wxh...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/wxhaskell-users">https://lists.sourceforge.net/lists/listinfo/wxhaskell-users</a> </pre> </blockquote> </body> </html> |
From: Eric <er...@ma...> - 2009-03-10 22:14:03
|
Dear all, I wish to insert text into a text control at the cursor. I've started with the following code: i <- textCtrlGetInsertionPoint editor but looking at the module Graphics.UI.WXCore.WxcClassesMZ I can't find an action to insert text. Can anyone help? Eric |
From: Henk-Jan v. T. <hj...@ch...> - 2009-03-08 16:03:23
|
On Wed, 04 Mar 2009 23:53:39 +0100, Henk-Jan van Tuyl <hj...@ch...> wrote: > > L.S., > > The attached program can display English and Dutch text, depending on the > button pressed; the title switches as well. However, the static text in > the window dissappears when I resize the window. Is this a bug in > wxHaskell/wxWidgets? > > How can I create a proper wxHaskell GUI with selectable language? > I found a workaround, to restore text after resizing: > set f [ on resize := > do > xs <- get st1 text > set st1 [ text := xs ] ] Another way would be, to use a fixed size frame; both methods are not really good, of course. -- Regards, Henk-Jan van Tuyl -- http://functor.bamikanarie.com http://Van.Tuyl.eu/ -- |
From: Li Q. <wd...@gm...> - 2009-03-08 08:07:09
|
Hi shelarcy, Thanks a lot for your help! I can now run the samples with VC++ 2008. I think I used the version 2005 previously. Regards, Li On Sun, Mar 8, 2009 at 3:35 PM, shelarcy <she...@gm...> wrote: > Hi Li, > > 2009/3/8 Li Qiao <wd...@gm...>: > > I am a beginning on wxhaskell. I have installed the wxHaskell-0.11.0 > package > > using the binary file. However, I cannot run the samples on Windows XP > and > > the error shows as "the application failed to initialize > > properly(0xc0150002). Click OK to terminate the application". > > > > I have tried to reinstall my Microsoft Visual C++ as suggested in other > > sources to solve the 0xc0150002 problem but it doesn't work. > > > > I would greatly appreciated if anyone can help me with this. > > What version of Microsoft Visual C++ do you use? I use Visual Studio 2008 > for building Windows binary. If you use earlier version, Visual C++ (and > Studio) installs earlier version's runtime. This is different from our > required > version. > > http://haskell.org/haskellwiki/WxHaskell/Windows > http://haskell.org/haskellwiki/WxHaskell/Troubleshooting#Runtime_issues > > And you must also check your Windows XP version. It seems that current > Windows binary doesn't work with 64 bit Windows. So, you can't use Windows > binary, if you use 64 bit version of Windows. We want to fix this problem. > > > http://www.mail-archive.com/wxh...@li.../msg00573.html > > > Best Regards, > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ > |
From: shelarcy <she...@gm...> - 2009-03-08 07:35:37
|
Hi Li, 2009/3/8 Li Qiao <wd...@gm...>: > I am a beginning on wxhaskell. I have installed the wxHaskell-0.11.0 package > using the binary file. However, I cannot run the samples on Windows XP and > the error shows as "the application failed to initialize > properly(0xc0150002). Click OK to terminate the application". > > I have tried to reinstall my Microsoft Visual C++ as suggested in other > sources to solve the 0xc0150002 problem but it doesn't work. > > I would greatly appreciated if anyone can help me with this. What version of Microsoft Visual C++ do you use? I use Visual Studio 2008 for building Windows binary. If you use earlier version, Visual C++ (and Studio) installs earlier version's runtime. This is different from our required version. http://haskell.org/haskellwiki/WxHaskell/Windows http://haskell.org/haskellwiki/WxHaskell/Troubleshooting#Runtime_issues And you must also check your Windows XP version. It seems that current Windows binary doesn't work with 64 bit Windows. So, you can't use Windows binary, if you use 64 bit version of Windows. We want to fix this problem. http://www.mail-archive.com/wxh...@li.../msg00573.html Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |
From: Li Q. <wd...@gm...> - 2009-03-08 07:03:54
|
Hi, I am a beginning on wxhaskell. I have installed the wxHaskell-0.11.0 package using the binary file. However, I cannot run the samples on Windows XP and the error shows as "the application failed to initialize properly(0xc0150002). Click OK to terminate the application". I have tried to reinstall my Microsoft Visual C++ as suggested in other sources to solve the 0xc0150002 problem but it doesn't work. I would greatly appreciated if anyone can help me with this. Thank you, Li |
From: José P. M. <jp...@cs...> - 2009-03-06 13:10:05
|
Hello, I have installed both the x64 and x86 versions (and also the 2005 and 2008 versions) of the Microsoft Visual C++ Redistributable Package and I still have the same problem. Thanks, Pedro On Fri, Mar 6, 2009 at 08:28, shelarcy <she...@gm...> wrote: > Hi Jose, > I'm sorry about my reply is late. > > On Wed, 18 Feb 2009 16:44:07 +0900, José Pedro Magalhães <jp...@cs...> > wrote: > > Hello all, > > > > After installing wxhaskell (from > > wxhaskell-bin-msw2.8.9-ghc6.10.1-0.11.0-0.zip) on my machine (Windows XP > > 64-bit edition), I get the following when running the examples: > > > > GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help > >> (snip) > >> Loading package wxcore-0.11.0 ... <interactive>: wxc-msw2.8.9-0.11.0: > The > >> specified module could not be found. > >> can't load .so/.DLL for: wxc-msw2.8.9-0.11.0 (addDLL: could not load > DLL) > >> *Main> > >> > > > > Compiling with ghc --make produces a similar error in a popup when trying > to > > run the application. Following > > http://haskell.org/haskellwiki/WxHaskell/Troubleshooting#Runtime_issues, > I > > am posting the issue to this list. > > How about install Microsoft Visual C++ 2008 SP1 Redistributable Package? > > http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en > > I'm using Visual C++ 2008 SP1 to build Windows binary. So, previous > solution is > obsolete. > > I updated that page's solution now. > > > Best Regards, > > -- > shelarcy <shelarcy hotmail.co.jp> > http://page.freett.com/shelarcy/ > |
From: shelarcy <she...@gm...> - 2009-03-06 07:28:41
|
Hi Jose, I'm sorry about my reply is late. On Wed, 18 Feb 2009 16:44:07 +0900, José Pedro Magalhães <jp...@cs...> wrote: > Hello all, > > After installing wxhaskell (from > wxhaskell-bin-msw2.8.9-ghc6.10.1-0.11.0-0.zip) on my machine (Windows XP > 64-bit edition), I get the following when running the examples: > > GHCi, version 6.10.1: http://www.haskell.org/ghc/ :? for help >> (snip) >> Loading package wxcore-0.11.0 ... <interactive>: wxc-msw2.8.9-0.11.0: The >> specified module could not be found. >> can't load .so/.DLL for: wxc-msw2.8.9-0.11.0 (addDLL: could not load DLL) >> *Main> >> > > Compiling with ghc --make produces a similar error in a popup when trying to > run the application. Following > http://haskell.org/haskellwiki/WxHaskell/Troubleshooting#Runtime_issues, I > am posting the issue to this list. How about install Microsoft Visual C++ 2008 SP1 Redistributable Package? http://www.microsoft.com/downloads/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en I'm using Visual C++ 2008 SP1 to build Windows binary. So, previous solution is obsolete. I updated that page's solution now. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ |