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: Atif I. <cs_...@ya...> - 2007-06-12 13:05:57
|
thanks Malcolm! I am new to Haskell and wxhaskell. I want to get a string from one text box,process it on button click and show the result in another test box on the same window. stxt <- textEntry p [enabled := True] textlog <- textCtrl p [enabled := False, wrap := WrapNone] -- use text control as logger textCtrlMakeLogActiveTarget textlog mytext <- textCtrlGetValue stxt eval <- button p [text := "Process", on command := logMessage mytext] Do you mean I need to define an event handler explicitly indicating the end of input.which event?? Atif --------------------------------- Need a vacation? Get great deals to amazing places on Yahoo! Travel. |
From: Malcolm W. <Mal...@cs...> - 2007-06-11 11:03:35
|
Atif Iqbal <cs_...@ya...> wrote: > I want to get string from text control, i tried like this > > stxt <- textEntry p [enabled := True] > mytext <- textCtrlGetValue stxt > > but its not working 'mytext' remains empty always. You are retrieving the text from the box immediately after _creating_ the box, which gives the user no time to edit it. You need to read the text only after the user has pushed a button to indicate that they have finished editing. Regards, Malcolm |
From: Atif I. <cs_...@ya...> - 2007-06-11 10:22:42
|
Hi! I want to get string from text control, i tried like this stxt <- textEntry p [enabled := True] mytext <- textCtrlGetValue stxt but its not working 'mytext' remains empty always. Can you suggest something? Atif ATIF IQBAL European Master in CL TU Madrid/TU Dresden --------------------------------- Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. |
From: <a_r...@ya...> - 2007-06-10 21:07:32
|
Hi, How can I maximize a frame in wxhaskell? Antonio Regidor García ____________________________________________________________________________________ ¡Descubre una nueva forma de obtener respuestas a tus preguntas! Entra en Yahoo! Respuestas. http://es.answers.yahoo.com/info/welcome |
From: <a_r...@ya...> - 2007-05-03 10:45:13
|
Thanks, it compiled :-) Antonio Regidor García > Try the Darcs repository. You will properly have better luck with that. > I have build the version in the repository on a Debian Etch machine. ____________________________________________________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Mads <mad...@ya...> - 2007-05-02 23:08:58
|
Hi Antonio Try the Darcs repository. You will properly have better luck with that. I have build the version in the repository on a Debian Etch machine. Try something like: su apt-get update apt-get install darcs libwxgtk2.6-dev xlibmesa-gl-dev xlibmesa-glu-dev exit darcs get http://darcs.haskell.org/wxhaskell cd wxhaskell chmod 755 configure ./configure --with-opengl --prefix=/usr/local make su make install make wx make wx-install then append /usr/local/lib to /etc/ld.so.conf.d/i486... and run ldconfig. Note, that the "make wx"-step also needs to be run as root. Greetings, Mads Lindstrøm > Hi, > > I tried to build wxhaskell 0.9.4 on debian lenny with ghc 6.6 and wxgtk2.6. Configure runs ok, but > make gives the following error: > > g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD > -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS > -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA > -Iwxc/include > wxc/include/wrapper.h: In constructor ‘ELJDragDataObject::ELJDragDataObject(void*, char*, int > (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*))’: > wxc/include/wrapper.h:172: error: no matching function for call to > ‘wxDataObjectSimple::wxDataObjectSimple(char*&)’ > /usr/include/wx-2.6/wx/dataobj.h:249: note: candidates are: > wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) > /usr/include/wx-2.6/wx/dataobj.h:202: note: > wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat&) > wxc/include/wrapper.h: In constructor ‘ELJTextValidator::ELJTextValidator(void*, void*, void*, > long int)’: > wxc/include/wrapper.h:257: error: ambiguous overload for ‘operator=’ in > ‘((ELJTextValidator*)this)->ELJTextValidator::buf = (const char*)_txt’ > /usr/include/wx-2.6/wx/string.h:627: note: candidates are: wxString& wxString::operator=(int) > <near match> > /usr/include/wx-2.6/wx/string.h:846: note: wxString& wxString::operator=(wxChar) > <near match> > /usr/include/wx-2.6/wx/string.h:860: note: wxString& wxString::operator=(const > wxWCharBuffer&) <near match> > /usr/include/wx-2.6/wx/string.h:611: note: wxString& wxString::operator=(const > wxString&) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:330: error: conflicting return type specified for ‘virtual char* > ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’ > /usr/include/wx-2.6/wx/ipcbase.h:85: error: overriding ‘virtual wxChar* > wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’ > wxc/include/wrapper.h: In constructor ‘ELJConnection::ELJConnection(char*, int)’: > wxc/include/wrapper.h:300: error: no matching function for call to > ‘wxTCPConnection::wxTCPConnection(char*&, int&)’ > /usr/include/wx-2.6/wx/sckipc.h:106: note: candidates are: wxTCPConnection::wxTCPConnection(const > wxTCPConnection&) > /usr/include/wx-2.6/wx/sckipc.h:65: note: wxTCPConnection::wxTCPConnection() > /usr/include/wx-2.6/wx/sckipc.h:64: note: > wxTCPConnection::wxTCPConnection(wxChar*, int) > wxc/include/wrapper.h: In constructor ‘ELJPrintout::ELJPrintout(void*, void*, void*, void*, void*, > void*, void*, void*, void*, void*)’: > wxc/include/wrapper.h:412: error: conversion from ‘char*’ to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) > <near match> > /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> > wxc/include/wrapper.h: In constructor ‘ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, > void*, void*, void*, void*, int, int, int, int, int)’: > wxc/include/wrapper.h:474: error: conversion from ‘char*’ to ‘const wxString’ is ambiguous > /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) > <near match> > /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> > wxc/include/wrapper.h: At global scope: > wxc/include/wrapper.h:534: error: default argument for parameter of type ‘const wxString&’ has > type ‘const char [11]’ > make: *** [out/wxc/ewxw_main.o] Error 1 > > Any hints? > > Thanks, > > Antonio Regidor García > > > > ____________________________________________________________________________________ > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |
From: <a_r...@ya...> - 2007-05-02 21:17:31
|
Hi, I tried to build wxhaskell 0.9.4 on debian lenny with ghc 6.6 and wxgtk2.6. Configure runs ok, but make gives the following error: g++ -c wxc/src/ewxw_main.cpp -o out/wxc/ewxw_main.o -MD -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -Iwxc/include wxc/include/wrapper.h: In constructor ELJDragDataObject::ELJDragDataObject(void*, char*, int (*)(void*), int (*)(void*, void*), int (*)(void*, int, const void*)): wxc/include/wrapper.h:172: error: no matching function for call to wxDataObjectSimple::wxDataObjectSimple(char*&) /usr/include/wx-2.6/wx/dataobj.h:249: note: candidates are: wxDataObjectSimple::wxDataObjectSimple(const wxDataObjectSimple&) /usr/include/wx-2.6/wx/dataobj.h:202: note: wxDataObjectSimple::wxDataObjectSimple(const wxDataFormat&) wxc/include/wrapper.h: In constructor ELJTextValidator::ELJTextValidator(void*, void*, void*, long int): wxc/include/wrapper.h:257: error: ambiguous overload for operator= in ((ELJTextValidator*)this)->ELJTextValidator::buf = (const char*)_txt /usr/include/wx-2.6/wx/string.h:627: note: candidates are: wxString& wxString::operator=(int) <near match> /usr/include/wx-2.6/wx/string.h:846: note: wxString& wxString::operator=(wxChar) <near match> /usr/include/wx-2.6/wx/string.h:860: note: wxString& wxString::operator=(const wxWCharBuffer&) <near match> /usr/include/wx-2.6/wx/string.h:611: note: wxString& wxString::operator=(const wxString&) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:330: error: conflicting return type specified for virtual char* ELJConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat) /usr/include/wx-2.6/wx/ipcbase.h:85: error: overriding virtual wxChar* wxConnectionBase::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat) wxc/include/wrapper.h: In constructor ELJConnection::ELJConnection(char*, int): wxc/include/wrapper.h:300: error: no matching function for call to wxTCPConnection::wxTCPConnection(char*&, int&) /usr/include/wx-2.6/wx/sckipc.h:106: note: candidates are: wxTCPConnection::wxTCPConnection(const wxTCPConnection&) /usr/include/wx-2.6/wx/sckipc.h:65: note: wxTCPConnection::wxTCPConnection() /usr/include/wx-2.6/wx/sckipc.h:64: note: wxTCPConnection::wxTCPConnection(wxChar*, int) wxc/include/wrapper.h: In constructor ELJPrintout::ELJPrintout(void*, void*, void*, void*, void*, void*, void*, void*, void*, void*): wxc/include/wrapper.h:412: error: conversion from char* to const wxString is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> wxc/include/wrapper.h: In constructor ELJPreviewFrame::ELJPreviewFrame(void*, void*, void*, void*, void*, void*, void*, int, int, int, int, int): wxc/include/wrapper.h:474: error: conversion from char* to const wxString is ambiguous /usr/include/wx-2.6/wx/string.h:643: note: candidates are: wxString::wxString(wxChar, size_t) <near match> /usr/include/wx-2.6/wx/string.h:633: note: wxString::wxString(int) <near match> wxc/include/wrapper.h: At global scope: wxc/include/wrapper.h:534: error: default argument for parameter of type const wxString& has type const char [11] make: *** [out/wxc/ewxw_main.o] Error 1 Any hints? Thanks, Antonio Regidor García ____________________________________________________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com |
From: Wolfgang J. <4f4...@ac...> - 2007-03-31 15:12:45
|
Hello, I want some code to be executed everytime a certain frame or dialog is clos= ed,=20 either programmatically via close or by the user using the method of the=20 respective windowing system (like pressing Alt+F4). How do I achieve this? In addition, I=E2=80=99d like to know what happens with the wxHaskell/wxWid= gets=20 objects of a frame/dialog (the frame/dialog object and all respective widge= t=20 objects) when the frame/dialog is closed. Are they destroyed automatically= ? =20 What happens if they are accessed after the frame/dialog has been closed? Best wishes, Wolfgang |
From: Eric Y. K. <eri...@gm...> - 2007-03-23 21:22:52
|
> Tue Mar 13 09:01:16 CET 2007 ar...@cs... > * polyline-64bit-compatibility-fix Now pushed in. Thanks, --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Stefan H. <st...@cs...> - 2007-03-22 15:07:54
|
Hi all, I've ran into a quite annoying problem... The key events wxHaskell allows you to handle originate from so- called char events at the wxWidgets side. These carry 'translated' key codes. For instance, when the 'A'-key is pressed while the SHIFT- key isn't (nor is CAPS LOCK etc.), the char event will carry the ASCII code for 'a', i.e., 97. However, when the 'A'-key is pressed together with the SHIFT-key, the char event will carry the ASCII code for 'A' (upper case), i.e., 65. The ratio behind all this is that's it's cumbersome to explicitly find out whether which modifiers (SHIFT, ALT, etc.) come with which key press. (wxWidgets, by the way, also offers 'untranslated' key events that just let you inspect the key code for the pressed key. The point here is that wxHaskell works with the _translated_ events.) So far, so good. Unfortunately, so I find out, I run an incarnation of wxWidgets, i.e., wxMac 2.6.2, that translates key events a bit too agressive. For instance, pressing the up-arrow key results in a translated event that carries the ASCII code for a form separator '\RS'. So, instead of the expected value KeyUp the event carries KeyChar '\RS' Besides with wxMac, I've also experienced this agressiveness with wxGtk 2.6.3.3 on Gentoo Linux. Right now, I work around it by defining my own event constructors: module MyGUI where import Graphics.WX.UI hiding (upKey, downKey) ... upKey = charKey '\RS' downKey = charKey '\US' Still, it is of course quite annoying. It would suit me better if wxHaskell would work with untranslated key events. This boils down to adapting the Reactive instance for Window: instance Reactive (Window a) where ... keyboard = newEvent "keyboard" windowGetOnKeyDown windowOnKeyDown ... I'd be more than happy to supply a patch for this. Any thoughts? On a related note: handlers for key events that I attach to frames do not seem to have any effect at all. Can someone explain to me why? Cheers, Stefan |
From: <jmv...@di...> - 2007-03-21 18:38:47
|
Hi Wolfgang, I did something similar: 1=BA I put several buttons inside one panel 2=BA I do the usual operations 3=BA I delete all the widgets inside the panel but not the panel itself. = For a panel called "panel" do " -- its necessary to delete the old elements in the panel windowChildren pp >>=3D mapM objectDelete=20 " 4=BA I create the new widgets (as children widgets of the panel "panel") 5=BA and use them as if they were the first ones Best Miguel Vila=E7a=20 -----Mensagem original----- De: wxh...@li... [mailto:wxh...@li...] Em nome de = Wolfgang Jeltsch Enviada: quarta-feira, 21 de Mar=E7o de 2007 15:14 Para: wxh...@li... Assunto: [wxhaskell-users] dynamic user interfaces Hello, I want to replace a group of frames or widgets by another group of = frames or widgets respectively. The old frames/widgets shall be deleted and the = new=20 ones created =93at the same time=94, i.e., without showing the = intermediate state=20 in the user interface. How do I achieve this in wxHaskell? Best wishes, Wolfgang -------------------------------------------------------------------------= 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV _______________________________________________ wxhaskell-users mailing list wxh...@li... https://lists.sourceforge.net/lists/listinfo/wxhaskell-users |
From: Wolfgang J. <4f4...@ac...> - 2007-03-21 15:14:33
|
Hello, I want to replace a group of frames or widgets by another group of frames o= r=20 widgets respectively. The old frames/widgets shall be deleted and the new= =20 ones created =E2=80=9Cat the same time=E2=80=9D, i.e., without showing the = intermediate state=20 in the user interface. How do I achieve this in wxHaskell? Best wishes, Wolfgang |
From: shelarcy <she...@gm...> - 2007-03-15 01:28:53
|
Hi Matthias, On Thu, 15 Mar 2007 02:06:00 +0900, Matthias Schmeling <Su...@t-...> wrote: > I have a short question: I tried to install wxHaskell under WindowsXP. Do you add GHC's path to PATH environment variable? http://www.haskell.org/ghc/docs/latest/html/users_guide/sec-install-windows.html#id3123695 http://support.microsoft.com/kb/310519 > I used wxHaskell 0.9.4 and ghc 6.2.2 (the link to 0.9.4.1 seems to be > broken), but after installing ghc and wxHaskell I get an error when I > try to register with the register.bat: > - register packages > Der Befehl "ghc-pkg" ist entweder falsch geschrieben oder > konnte nicht gefunden werden. > Der Befehl "ghc-pkg" ist entweder falsch geschrieben oder > konnte nicht gefunden werden. > error: > Unable to register the package using "ghc-pkg". > Maybe you have an incompatible version of ghc installed? > Drücken Sie eine beliebige Taste . . . It reports that Windows can't find ghc-pkg on your computer. So I think you don't add GHC's path to your environment. Best Regards, -- shelarcy <shelarcy capella.freemail.ne.jp> http://page.freett.com/shelarcy/ |
From: Eric Y. K. <eri...@gm...> - 2007-03-14 19:08:42
|
Hi Matthias, On Wed, Mar 14, 2007 at 17:06:00 +0000, Matthias Schmeling wrote: > I have a short question: I tried to install wxHaskell under WindowsXP. I > used wxHaskell 0.9.4 and ghc 6.2.2 (the link to 0.9.4.1 seems to be > broken), but after installing ghc and wxHaskell I get an error when I > try to register with the register.bat: > Unable to register the package using "ghc-pkg". > Maybe you have an incompatible version of ghc installed? What version of GHC do you have. Is it also GHC 6.2.2? If it is a later version, I have two possible answers. The first is that the link to the 0.9.4.1 installer (GHC 6.4) does seem to be active. The second is that it would probably be easier if you tried the unreleased darcs version, available via darcs get http://darcs.haskell.org/wxhaskell ; it should work with a recent GHC, namely 6.4 or 6.6. I'm afraid I can't be more helpful, because I don't spend enough time on Windows to know what's going on. But I hope this moves you forward somewhat. Best, --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: <Su...@t-...> - 2007-03-14 17:06:21
|
Hi, I have a short question: I tried to install wxHaskell under WindowsXP. I used wxHaskell 0.9.4 and ghc 6.2.2 (the link to 0.9.4.1 seems to be broken), but after installing ghc and wxHaskell I get an error when I try to register with the register.bat: - register packages Der Befehl "ghc-pkg" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Der Befehl "ghc-pkg" ist entweder falsch geschrieben oder konnte nicht gefunden werden. error: Unable to register the package using "ghc-pkg". Maybe you have an incompatible version of ghc installed? Drücken Sie eine beliebige Taste . . . Can you tell me what I should do? Thanks in advance, Matthias |
From: <ar...@cs...> - 2007-03-13 08:07:53
|
Tue Mar 13 09:01:16 CET 2007 ar...@cs... * polyline-64bit-compatibility-fix Fixes a problem with the polyline function on a 64-bit platform. The wxDC_DrawLines function now properly indexes into the array with points. |
From: Eric Y. K. <eri...@gm...> - 2007-03-05 20:34:27
|
Dear (wx)Haskellers, I have recently been switching some of my GUI software to Cabal (from my clunky ad-hoc Makefiles). As you might aware, wxhaskell apps on MacOS X require the macosx-app script to be run on the executable or else the GUI doesn't respond at all; it just sits there looking pretty. (if anybody wants to fill me in on the technical details, I would be curious/interested). Attached is a Setup.lhs file which uses an install hook to run that script once you have installed your program. Note that it optionally allows to specify what script to run, in case you have a special version, which for example, attaches as icon to your app. Any comments, suggestions for improvements, simpler means of going about the same task? Thanks, -- Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon français. |
From: <lag...@us...> - 2007-03-05 10:59:45
|
I'm building up an application where the mouse pointer has to change its shape depending on its functionality. I've found a previous mail in the list (quite old btw) that suggests something like: cursor <- cursorCreateFromStock wxCURSOR_HAND windowSetCursor f cursor The program compiles properly but nothing happens when asking for changing the cursor... I've also tried to avoid the usage of cursorCreateFromStock and create a cursor from scracth with an ico bitmap but I don't know how to create a (ccursor b), any idea? Does anyone know if this is already implemented in the current version, or where I'm wrong? Thanks! David _________________________________________________________________ ¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/ |
From: David R. <lag...@ho...> - 2007-03-01 13:41:34
|
Hi, I'm working on a wxhaskell application and I want to change the cursor with another bitmap image. I saw in another mail that there are two functions to do this: cursor <- cursorCreateFromStock wxCURSOR_HAND windowSetCursor window cursor but it doesn't work. I don't know if I do something wrong or this functions are not implemented. If someone knows about that, please RE-mai to me. Thanks, David. _________________________________________________________________ Grandes éxitos, superhéroes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu móvil. |
From: David R. <lag...@ho...> - 2007-03-01 13:20:05
|
Hi, I'm working on a wxhaskell application and I want to change the cursor with another bitmap image. I saw in another mail that there are two functions to do this: cursor <- cursorCreateFromStock wxCURSOR_HAND windowSetCursor window cursor but it doesn't work. I don't know if I do something wrong or this functions are not implemented. If someone knows about that, please RE-mai to me. Thanks, David. _________________________________________________________________ Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349 |
From: Mateu V. <mat...@ud...> - 2007-03-01 11:35:20
|
I'm building up an application where the mouse pointer has to change its shape depending on its functionality. I've found a previous mail in the list (quite old btw) that suggests something like: cursor <- cursorCreateFromStock wxCURSOR_HAND windowSetCursor f cursor The program compiles properly but nothing happens when asking for changing the cursor... I've also tried to avoid the usage of cursorCreateFromStock and create a cursor from scracth with an ico bitmap but I don't know how to create a (ccursor b), any idea? Does anyone know if this is already implemented in the current version, or where I'm wrong? Thanks! David |
From: Arthur v. L. <art...@cs...> - 2007-02-21 09:26:47
|
On 20-feb-2007, at 22:29, Mads Lindstr=F8m wrote: > Hi All > > Arthur van Leeuwen wrote: >> On 18-feb-2007, at 18:23, Mads Lindstr=F8m wrote: >> >>> Hi all >>> >>> I have created a text-control and I want to know which character the >>> mouse is hovering over. Getting the mouse position is easy enough. >>> However converting the mouse position to a character index (into the >>> text-control's text) seems very difficult. >>> >>> Anybody knows how to go from mouse position to character index? >> >> First, you need to get a hold of the TextCtrl. Then on that >> you can use textCtrlPositionToXY to get the x- and y- coordinate =20 >> of the >> character in character increments. textCtrlPositionToXY is in WXCore. > > textCtrlPositionToXY get the character position. That is, in the text: > > ab > c > def > > a, b, c, d, e, and f will have character positions (0,0), (1,0), =20 > (0,1), > (0,2), (1,2), and (2,2) respectively. Yes, and it gets this from the mouse position you pass to the function. =46rom these coordinates you can generate the position in the string "ab\nc\ndef", e.g. Is this not what you want? > When I wrote the mouse position, I was referring to the bitmap =20 > position > on the canvas (on which the characters are drawn) - I should have =20 > been a > bit more precise there. I get this position by capturing mouse events > by: > > set textCtrl [ on mouse :=3D ... ] Yes. The canvas contains the textCtrl, and the textCtrl draws the =20 string. Therefore it can perform the mapping back to character coordinate from mouse position. =46rom that you can map back to position in string =20 yourself. Maybe I am just completely misunderstanding what you want to do. Doei, Arthur. --=20 /\ / | art...@cs... | Work like you don't need =20= the money /__\ / | A friend is someone with whom | Love like you have never =20 been hurt / \/__ | you can dare to be yourself | Dance like there's nobody =20= watching |
From: Mads <mad...@ya...> - 2007-02-20 21:28:27
|
Hi All Arthur van Leeuwen wrote: > On 18-feb-2007, at 18:23, Mads Lindstrøm wrote: > > > Hi all > > > > I have created a text-control and I want to know which character the > > mouse is hovering over. Getting the mouse position is easy enough. > > However converting the mouse position to a character index (into the > > text-control's text) seems very difficult. > > > > Anybody knows how to go from mouse position to character index? > > First, you need to get a hold of the TextCtrl. Then on that > you can use textCtrlPositionToXY to get the x- and y- coordinate of the > character in character increments. textCtrlPositionToXY is in WXCore. textCtrlPositionToXY get the character position. That is, in the text: ab c def a, b, c, d, e, and f will have character positions (0,0), (1,0), (0,1), (0,2), (1,2), and (2,2) respectively. When I wrote the mouse position, I was referring to the bitmap position on the canvas (on which the characters are drawn) - I should have been a bit more precise there. I get this position by capturing mouse events by: set textCtrl [ on mouse := ... ] > > One tip: try searching the wxWidgets docs first when trying to figure > out how to do stuff. For me it tends to lead me to the result quicker > than > perusing just the wxHaskell docs. Good point. > > With regards, Arthur van Leeuwen. > Kind regards, Mads Lindstrøm |
From: <jmv...@di...> - 2007-02-19 11:55:36
|
Hi,=20 After losts of surfing in Google and in wxHaskell Haddock documentation = I find out this possible solution that works fine for my case=20 wxcAppYield (http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesMZ.htm= l#v %3AwxcAppYield ) or its variant=20 wxcAppSafeYield (http://wxhaskell.sourceforge.net/doc/Graphics.UI.WXCore.WxcClassesMZ.htm= l#v %3AwxcAppSafeYield ) It is simple as calling this function before testing if a certain button = had been pressed and its call-back had update the state of the application accordingly. Thanks for your help. Best Miguel Vila=E7a=20 -----Mensagem original----- De: Eric Y. Kow [mailto:eri...@gm...]=20 Enviada: domingo, 18 de Fevereiro de 2007 20:58 Para: Jos=E9 Miguel Vila=E7a Cc: wxHaskell mailing list Assunto: Re: [wxhaskell-users] Stop do not stop; not multi-threaded? Hi, On Mon, Feb 05, 2007 at 16:17:41 -0000, Jos=E9 Miguel Vila=E7a wrote: > In theory this seems the solution but when I tested it I find out that = it > doesn=92t. The very long computation gets the attention of the = processor and > blocks the graphical interface; clicking the Stop button don=92t fire = the > actions. Does calling wxcAppSafeYield in your long computation (look in the index of the API) help? I don't actually know the answer, just making some guesses. You might want to look into what Dazzle/XTC do, otherwise. And if it does help, maybe you could write something up on the Haskell wiki so that other programmers won't have to suffer! Best, --=20 Eric Kow http://www.loria.fr/~kow PGP Key ID: 08AC04F9 Merci de corriger mon fran=E7ais. |
From: Arthur v. L. <art...@cs...> - 2007-02-19 09:53:50
|
On 18-feb-2007, at 21:58, Eric Y. Kow wrote: > Hi, > > On Mon, Feb 05, 2007 at 16:17:41 -0000, Jos=E9 Miguel Vila=E7a wrote: >> In theory this seems the solution but when I tested it I find out =20 >> that it >> doesn=92t. The very long computation gets the attention of the =20 >> processor and >> blocks the graphical interface; clicking the Stop button don=92t =20 >> fire the >> actions. > > Does calling wxcAppSafeYield in your long computation (look in the =20 > index > of the API) help? I don't actually know the answer, just making some > guesses. You might want to look into what Dazzle/XTC do, otherwise. Just as a heads-up: Dazzle doesn't solve this problem at all. Long =20 computations are split in parts, the (lazy) evaluation of which is driven from the =20= UI, but any truly long evaluation will still block the UI. Doei, Arthur. --=20 /\ / | art...@cs... | Work like you don't need =20= the money /__\ / | A friend is someone with whom | Love like you have never =20 been hurt / \/__ | you can dare to be yourself | Dance like there's nobody =20= watching |