🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.misc
Article #146

Re: **********Use the mouse***************

#146
From: John RUBAN
Date: Sat, 05 Oct 1996 00:00
84 lines
2532 bytes
This is a multi-part message in MIME format.

--------------28C725411FCA
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit

> hey,
>   anyone have any good mouse units or code or help to give me. My
> teacher wont tell me and i know nobody else that could tell me.
> All help is appreciated.
 

HI, I'v created the simple unit (mouse.pas) wich could help you
to use MSMouse. 
					John

--------------28C725411FCA
Content-Type: text/plain; charset=koi8-r; name="mouse.pas"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="mouse.pas"

unit mouse;
interface
function mInit:boolean;
procedure mVisible;
procedure mUnvisible;
procedure mGetstat(var stat:word;var x,y:word);
procedure mSetpos(x,y:word);
procedure mSetVisualBox(x1,y1,x2,y2:word);
implementation
function mInit:boolean;assembler;
asm
 mov ax,0
 int 33h
end;
procedure mVisible;assembler;
asm
 mov ax,1
 int 33h
end;
procedure mUnvisible;assembler;
asm
 mov ax,2
 int 33h
end;
procedure mGetstat(var stat:word;var x,y:word);
var sta,xx,yy:word;
begin
 asm
  mov ax,3
  int 33h
  mov sta,bx
  mov xx,cx
  mov yy,dx
 end;
 stat:=sta;x:=xx;y:=yy
end;
procedure mSetpos(x,y:word);assembler;
asm
 mov ax,4
 mov cx,x
 mov dx,y
 int 33h
end;
procedure mSetVisualBox(x1,y1,x2,y2:word);
var mx,my:word;
begin
 mx:=(x1+x2) shr 1;my:=(y1+y2) shr 1;
 asm
  mov ax,7
  mov cx,x1
  mov dx,x2
  int 33h
  mov ax,8
  mov cx,y1
  mov dx,y2
  int 33h
 end;
 mSetpos(mx,my)
end;
begin
end.
--------------28C725411FCA--
Technical Details
Message-ID: <3255FA38.1155@ccmath.nsu.ru>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <1996Sep27.160013.6675@arl.mil> <52jbao$c98@dfw-ixnews4.ix.netcom.com> <cecodere.100.324EA74C@andrew.sca.usherb.ca> <52n01v$ph3@dfw-ixnews7.ix.netcom.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11185f,8746d3f6e7cf3444
X-Google-Attributes: gid11185f,public
X-Google-Thread: 111659,8746d3f6e7cf3444
X-Google-Attributes: gid111659,public
X-Google-Thread: 10261c,38608a28b5863775
X-Google-Attributes: gid10261c,public
X-Google-Thread: 102601,8746d3f6e7cf3444
X-Google-Attributes: gid102601,public
From: John RUBAN <213rej@ccmath.nsu.ru>
Subject: Re: **********Use the mouse***************
Date: 1996/10/05
Message-ID: <3255FA38.1155@ccmath.nsu.ru>
X-Deja-AN: 187704402
references: <1996Sep27.160013.6675@arl.mil> <52jbao$c98@dfw-ixnews4.ix.netcom.com> <cecodere.100.324EA74C@andrew.sca.usherb.ca> <52n01v$ph3@dfw-ixnews7.ix.netcom.com>
content-type: multipart/mixed; boundary="------------28C725411FCA"
organization: NSU
mime-version: 1.0
newsgroups: comp.lang.pascal.misc,comp.lang.pascal.borland,ctdl.lang.pascal,osu.pascal
x-mailer: Mozilla 3.0b5a (Win95; I)