Fixed. The main problem is that `on-subwindow-event' implementations are more restricted than they used to be. Due to the way that events are dispatched, if an `on-subwindow-event' method takes too long or if it requires threads other than the eventspace thread to run, then the event being processed never makes it to the native control (even if `on-subwindow-evet' returns #f). I think we may be able to improve the "too long" restriction to some degree eventually, but I see no solution to the synchronization restriction.
I made "orbit-mouse.rkt" work by changing the implementation of a queue within FrTime, which makes the `on-subwindow-event' hooks used by Fred sufficiently cooperative, and now mouse events can reach controls like sliders. At Fri, 4 Feb 2011 17:01:12 -0600, Robby Findler wrote: > I reduced that down to a small gr2 program. Will send in a bug report > when I get home. > > On Friday, February 4, 2011, Jay McCarthy <jay.mccar...@gmail.com> wrote: > > The Fred GUI doesn't seem to work. I can't adjust the sliders on > > demos/orbit-mouse.rkt for example. I see no output on the console > > though. I'm not really sure where to check from there. I will try to > > trace it through > > > > Jay > > > > 2011/2/4 Jay McCarthy <jay.mccar...@gmail.com>: > >> I'll update and re-run the FrTime test then for Greg > >> > >> Jay > >> > >> 2011/2/4 Matthew Flatt <mfl...@cs.utah.edu>: > >>> At Fri, 4 Feb 2011 15:02:18 -0700, Jay McCarthy wrote: > >>>> I've looked into this and I think it is a regression of GR2. > >>> > >>> Thanks for investigating! > >>> > >>>> The dc<%> interface documentation lists a huge number of functions, > >>>> but racket/draw/private/dc-intf.rkt only has "draw-text" in the > >>>> interface. > >>> > >>> Fixed this morning. > >>> > >>>> A simple way to test is to run frtime/demos/mouse.rkt > >>> > >>> That now works for me. > >>> > >>> > >> > >> > >> > >> -- > >> Jay McCarthy <j...@cs.byu.edu> > >> Assistant Professor / Brigham Young University > >> http://faculty.cs.byu.edu/~jay > >> > >> "The glory of God is Intelligence" - D&C 93 > >> > > > > > > > > -- > > Jay McCarthy <j...@cs.byu.edu> > > Assistant Professor / Brigham Young University > > http://faculty.cs.byu.edu/~jay > > > > "The glory of God is Intelligence" - D&C 93 > > _________________________________________________ > > For list-related administrative tasks: > > http://lists.racket-lang.org/listinfo/dev > > _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev