Path: utzoo!attcan!utgpu!watmath!watdcsu!dmurdoch From: dmurdoch@watdcsu.waterloo.edu (D.J. Murdoch - Statistics) Newsgroups: comp.lang.pascal Subject: Re: Mouse problems Keywords: Hercules graphics Message-ID: <5520@watdcsu.waterloo.edu> Date: 10 Feb 89 13:42:30 GMT References: <744@krafla.rhi.hi.is> Reply-To: dmurdoch@watdcsu.waterloo.edu (D.J. Murdoch - Statistics) Organization: U. of Waterloo, Ontario Lines: 22 In article <744@krafla.rhi.hi.is> binni@rhi.hi.is (Brynjolfur Thorsson) writes: >I am currently developing a measurement program for use in one of our >laboratorys using Turbo Pascal 5.0. My computer is equipped with a >Hercules card and I use entirely graphics mode. Sorry for posting, but my mail hasn't been making it out lately. The Microsoft Mouse Programmer's Reference talks about exactly this situation, and you have to do something special. The trouble is that the driver can't determine whether a Herc card is in text mode or graphics mode, so you have to tell it explicitly. I don't have the manual handy, but the following code should work: gd = detect; initgraph(gd,gm,driver_path); { Change display to graphics mode } if gd = HercMono then mem[$40:$49] := 6; { Change "video mode" byte to 6 for page 0, 5 for page 1 } mReset; { Now reset the mouse. } Duncan Murdoch