From: <72...@in...> - 2003-07-29 23:10:44
|
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. I know this is not the moment for comment anything, since certainly everybody are on holydays, but I want to report a bug before I forget to do it. 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. I have been looking for a solution. I think you should use the methods XXXIsDown, what is I am going to do in my library. I hope I have been useful. 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. 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/ |