|
From: Claus R. <cla...@ta...> - 2004-06-09 18:26:49
|
I've just started playing around with wxhaskell a little bit
more seriously, and keep having problems finding my way
through the docs. For instance, how do I get arrowheads
at the end of my lines? 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)?
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. The wxhaskell applications page mentions a
NetEdit tool but the source doesn't seem to be available?
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
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.]?
Oh, and does wxhaskell work with hugs? If yes, easily installable
packages to replace the aging HGL/SOEGraphics would be nice:-)
Cheers,
Claus
|