home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!kiae!demos!newsserv
- From: evsikov@lcta5.jinr.dubna.su (Igor Evsikov)
- Newsgroups: comp.lang.pascal
- Subject: Re: GRAPHIC MOUSE CURSOR IN Text mode
- Date: Wed, 30 Dec 92 02:00:43 +0300
- Distribution: world
- Organization: Lcta
- Message-ID: <AARYDGh8q9@lcta5.jinr.dubna.su>
- Sender: news-service@newcom.kiae.su
- Reply-To: evsikov@lcta5.jinr.dubna.su
- Lines: 41
-
- >vanney.raphael@lill.frmug.fr.mugnet.org (Vanney Raphael) writes:
-
- >>I extremely highly suspect this is, say, easily, done by dynamically
- >>(i.e.
- >>whenever you move the mouse) redefining the character set :
- >>When showing the mouse, replace the (up to) four characters (partially)
- >>covered by the mouse cursor by, say #255 #254
- >> #253 #252
- >>then redefine the characters #252 to #255 to display... those characters
- >>that where under the mouse... PLUS a mouse cursor !
- >>That of course implies that you've got no other #252..#255 characters on
- >>the screen (try #0..#3).
- >>If you have never seen one thousand of mouse cursors moving
- >>simultaneously
- >>on your screen, just try to edit a binary file with PC-Tools 7....!!!
- >
- >You overlook the fact that in text mode, you can have 8 or so character
- >sets available for use. Pick the highests numbered one and define your
- >mouse cursor characters *there*. That way, since the default font is
- >what gets picked for everything else, you can get away with all kinds
- >of things.
- >Leonard Erickson leonard@qiclab.scn.rain.com
-
- This not easy. You must:
-
- 1) Save old image 4 characters under cursor
- 2) Get image characters under cursor
- 3) Use miky Intr($33,$0b) for cursor position
- 4) Restore old rectangle if mouse position changed
- 5) CharImage OR ArrowImage in rectangle
- 6) Put new Image to 2 layer video RAM
- 7) Write new characters to cursor position
- 8) and not all ...
-
- I wrote TPU (see SIMTEL: <MSDOS.TURBOPAS>RMOUSE11.ZIP) which it do.
- Igor
- evsikov@lcta5.jinr.dubna.su
-
-
-
-
-