cunniff@hpesoc1.HP.COM (Ross Cunniff) (02/10/88)
In article <415@boole.acc.virginia.edu>, pmy@boole.acc.virginia.edu writes: >I'm trying to selectively enable and disable MOUSEMOVE broadcasts (from >IDCMP). I open a window with the REPORTMOUSE flag set. I immediately >shut off mouse reports with ReportMouse (w, 0). So far, so good (near >as I can tell). The program is also watching for MOUSEBUTTONS. When >the select button is pressed, I want to enable MOUSEMOVE reports. >ReportMouse (w, 1), right? Wrong, and the Guru makes a special effort >to tell me so. Also, when the select button is released, I want >MOUSEMOVEs disabled. Anyway, does anyone know what the problem is? >Has the use of ReportMouse changed since 1.1? Thanks in advance, >naturally. > >P.S. On closer inspection, ReportMouse (w, 0) had no effect at all. > Mousemove events came through anyway. The interface to ReportMouse in amiga.lib is broken (on Lattice compilers at least, not sure about Manx). Instead of: ReportMouse( Win, Bool ) try: ReportMouse( Bool, Win ) >Pete Yadlowsky Ross Cunniff