From: Daan L. <daa...@xs...> - 2004-06-09 19:11:17
|
Hi Claus, On Wed, 9 Jun 2004 19:26:25 +0100, Claus Reinke <cla...@ta...> wrote: > I've just started playing around with wxhaskell a little bit > more seriously, and keep having problems finding my way > through the docs. Yes, the documentation is still problematic -- allthough I have worked very hard to document everything *somewhere* :-) Many times, I give all classes a specific widget belongs too in the description of the creation function. Regarding arrowheads, see the "WX.Draw" module documentation. There is no arrowhead primitive, I see, so you need to draw a little triangle yourself :-( -- but don't forget to look at the "penCap" attribute of a DC. > How do I avoid my wxhaskell window > to flick to an interim size before settling on the intended size > (happens, e.g., with the bouncing ball demo)? Yes, annoying. I know how to solve this now, so it will be in version 0.8. (-- which is a big update btw, with automatic memory management of bitmaps etc.) > I'd like to hack on a little Petri net editor, and while that > hasn't been too difficult so far, it sounds like a standard > problem, so: is there a graph editor component for wxhaskell > that I could build on? The wxwidgets pages mention an > "Objects Graphic Library (OGL)" but I can't find any further > info on this. Never heard of it either? Maybe it is in the contributions. I'll look into it -- maybe it is a good addition to include. > Also, there seem to be a few oddities with the demos on > a windows98 box (in addition to the window size problem): > > - TimeFlows: only "Time" follows the mouse, the other > words hang in the upper left corner > - Process: responds only with error pings, whatever the > input Hmm, I never tested it myself on windows98 -- I can imagine that Process doesn't work as it uses multi threading, but the "Time" behaviour is strange indeed -- probably the "idle" events don't come through correctly (or getCPUTime is broken?) > As for installation, I'd prefer to put the library in the ghc dirs > instead of the system dirs. And, after registering wx and wxcore > with ghc, I still have to give the -package wx flag when starting > ghci. Can't ghc/ghci deduce that from the imports [ghc docs, > 4.8.1. Using a package: Some packages are automatically > available: you don't need to specify any extra flags to use > them (except in certain circumstances; see below). All the > packages which contain hierarchical libraries fall into this > category.]? I never looked into "automatic" loading. If I can find out how it works, I'll try to include it in version 0.8. Maybe you can instruct ghc yourself to include it by default? (using ghc-pkg) > Oh, and does wxhaskell work with hugs? If yes, easily installable > packages to replace the aging HGL/SOEGraphics would be nice:-) Never tried it, but I think that the library might be a bit heavy weight for Hugs. However, I never particularly rely on GHC features so it might just work. All the best, Daan. > > Cheers, > Claus > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: GNOME Foundation > Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event. > GNOME Users and Developers European Conference, 28-30th June in Norway > http://2004/guadec.org > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > |