From: Ian L. <ig...@ea...> - 2004-03-24 18:52:55
|
Hi all, I've written a simple application using wxHaskell, mainly to see how the library works. It's at http://urchin.earth.li/~ian/mamot/ However, I've run into a few problems (using Debian's wxgtk 2.4.2.4 and wxHaskell 0.6): I'm not sure how to get it to both display correctly and not flicker. I've tried various combinations of dcBuffer, windowFreeze/windowThaw, fullRepaintOnResize := False, but don't seem to have hit upon the magic combination yet? I haven't worked out yet what "set p [defaultButton := ok]" does other than set focus. To actually make a default button I need to do "buttonSetDefault ok". m_metaDown seems to reflect whether numlock is on or not. As "on click" checks that none of the modifiers are down this is quite annoying. The scrolled window seems to like increasing its virtual size when the window gets bigger unless I explicitly keep resetting it. Is there a nice way to get the behaviour I want? I have to give the "wx-config --gl-libs" options as well as the "--libs" ones when linking. Otherwise I get things like /usr/lib/libwxc-0.6.so: undefined reference to `wxGLCanvas::SwapBuffers()' Splitting the library so the GL libraries are only necessary if you are using the GL functionality would be nice. The program is 7M, or 3M after stripping. Perhaps this could be reduced if -split-objs was used when compiling wxHaskell? Finally, when my program starts up it decides to be as small as possible. Again I haven't found the right way of convincing it to start off at some sensible size. Thanks Ian |