home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / turbopas / mousefix.zip / READ.ME < prev   
Text File  |  1991-04-29  |  2KB  |  50 lines

  1.     MOUSEFIX - TSR to fix bugs in mouse drivers when used with Turbo
  2.                Pascal 6.0
  3.  
  4.     Usage:  Run MOUSEFIX after loading your mouse driver, before running
  5.             the TP6 IDE. It's a 27K TSR; if it works, you'll probably
  6.             want to rewrite it in assembler.
  7.  
  8.     A lot of people have had trouble with TP 6 losing their mouse
  9.     cursor. I didn't have this problem, until I started using the IDE
  10.     within Desqview: then using Alt-F5 to view the output screen, and
  11.     Enter to get back to the editor would confuse Desqview, so that the
  12.     next time I popped up the Desqview menu and got rid of it my mouse
  13.     cursor would be lost.
  14.  
  15.     I recently got a copy of Schulman et al's Undocumented DOS (great
  16.     book!) and the program Intrspy included with it, so I tried spying
  17.     on the mouse interrupt to see what was going on. It looks as though
  18.     the offending code goes something like this:
  19.  
  20.       ( You hit Alt-F5 )
  21.       TP saves the mouse state
  22.       TP turns off the mouse cursor
  23.       ( You hit enter to get back to the editor )
  24.       TP restores the mouse state.
  25.  
  26.     TP seems to assume that restoring the mouse state will restore the
  27.     cursor, and it does: but Desqview doesn't know that it does, so it
  28.     thinks the cursor is still hidden.
  29.  
  30.     I'd guess that similar problems happen with incompatible mouse
  31.     drivers: they don't restore the cursor when the state gets restored.
  32.  
  33.     If that's true, then the program MOUSEFIX might fix it. What it does
  34.     is to keep track of the cursor status between saves & restores, and
  35.     enforce a balance of shows and hides. It seems to fix the problems
  36.     within Desqview, so I'm hopeful it'll work elsewhere, too.
  37.  
  38.     I wrote it in TP using Object Professional's OPINT and OPTSR units
  39.     for clarity; if you want to really use the thing, you'll probably
  40.     want to rewrite it in assembler.
  41.  
  42.     I'd appreciate hearing from anyone who has had mouse problems about
  43.     whether this fixes them.
  44.  
  45.     Duncan Murdoch
  46.  
  47.     dmurdoch@watstat.waterloo.edu   (Internet)
  48.     DJ Murdoch at 1:221/177.40      (Fidonet)
  49.     71631,122                       (Compuserve)
  50.