From: Daan L. <daa...@xs...> - 2003-08-14 11:01:50
|
Hi Jose, > First of all, please pardon my clumsy english. I am Jose > David Fernandez, a > computer studies student at the university of Malaga, Spain. > I am developing a > yahu-liked GUI on top of WXH, like your WX, as a project for > finish my studies. Maybe you should consider working on WX instead of building a new interface? WX is already very much structured like Yahu -- have you seen the attributes and event handling? wxHaskell is very much a community project and it would be great if you can design/invent good abstractions and extensions for the WX library. Anyway, nice that you can use wxWindows for your final project :-) > Your mouse event handlers receive a MouseEvent data as > argument. This data can > have the constructors MouseLeftDrag, MouseRightDrag, > MouseMiddleDrag, and > others. You get the button that is dragging by consulting the > mouseEventGetButton method. But (and here is the bug) this > method returns -1 on > a wxEVT_MOTION event (see wxwindows docs), and the > mouseEventDragging method > only returns TRUE on wxEVT_MOTION, so your data event > converter always yields > MouseLeftDrag (the default choice), never the other two MouseXXXDrag. Ok, this is fixed in the latest CVS. Thanks for giving this detailed report! (note: the whole left/right/middle drag constructors are somewhat wrong. I guess it would be better to have MouseDown/Up/DClick/Motion constructors together with the currently pressed buttons (just as modifiers). However, I want to stick closely to the wxWindows interface ...) > I would want to comment another thing. Since I am working > with the WXH package, > I need the sources for consulting. You have packed all them > except wxcClasses > and wxcDefs. I am working now with older ones, and I think I > can get newer ones > from the CVS, but it would be useful that you put them in the > source release in your download page. You can generate these sources yourself! Just type "make" :-) (You could also take a shortcut: > make wxd > make wxh/src/Graphics/UI/WXH/WxcClasses.hs > make wxh/src/Graphics/UI/WXH/WxcClassTypes.hs > make wxh/src/Graphics/UI/WXH/WxcDefs.hs ) Hope this helps, Daan. > > Thank you for this wonderful port of wxwindows to haskell and > happy return from > holyday. > > --------------------------------------------- > Este mensaje lo ha enviado un Alumno de la Universidad de Malaga. > http://www.alumnos.uma.es/ > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet > _072303_01/01 > _______________________________________________ > wxhaskell-users mailing list > wxh...@li... > https://lists.sourceforge.net/lists/listinfo/wxhaskell-users > > |