ÍÍ MANUAL.DOC ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ A mouse unit for Turbo and Borland Pascal. ³ ÀÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÙ ³ PASCAL MOUSE Version 1.0 ³ ÀÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÙ ³ December 1996 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Author: Tanescu Aurelian Horatiu ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Chapter 1. First things first ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 1.1. Mouse Installation In order to use the mouse any application requires an installed Microsoft compatible mouse driver. If you include the Mouse unit in your "uses" clause a detection routine will be automatically run at the beginning of the program ( the InitMouse procedure ). This routine sets the MouseInstalled variable to True if a mouse driver is found or to false if no mouse driver is installed. Check the value stored in MouseInstalled before using any mouse routine. If a mouse driver is not installed the mouse routines will still execute but they will not properly work. 1.2. Showing and hiding the mouse To make the mouse appear on the screen call ShowMouse. To hide it call HideMouse. Hiding the mouse doesn't disable it, all mouse routines will remain fully operational. Any call to HideMouse decrements an internal counter. Any call to ShowMouse increments it unless it it 0. The mouse appears on the screen only when this internal counter becomes 0. The MouseState variable is a copy of this internal counter and it is provided for informational purposes only. Changing its value will not affect the real counter. To show the mouse after you called HideMouse more than once you can use a statement like this: while MouseState <> 0 do ShowMouse; To verify if the current value of the MouseState is correct, call GetMouseState. This function updates MouseState and also returns its value. InitMouse and SoftwareReset always set MouseState to -1 so a single call to ShowMouse will make the mouse cursor visible. 1.3. Reading the mouse When programming the mouse the most important thing is to read the state of the buttons ( pressed or released ) and the position of the mouse. The MouseX and MouseY variables stores the current mouse location. The boolean variables LeftButtonPressed, CenterButtonPressed and RightButtonPressed store the current state of the mouse buttons. The ReadMouse updates these variables each time it is called. You should call it periodically to have the correct information about the mouse position and state all the time. In text modes you need to convert the values from MouseX and MouseY to be related to the character position on the screen. Use TextX and TextY for this purpose. 1.4. Positioning the mouse You can place the mouse cursor at a specified position on the screen using MouseTo. This procedure requires virtual coordinates. In text modes you can convert character-relative coordinates to virtual coordinates using VirtualX and VirtualY. MouseTo automatically updates MouseX and MouseY. ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Chapter 2. Public variables and types ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 2.1. Types TGraphicCursor defines the shape of the graphic mouse cursor. It is used by SetGraphicCursor. type TGraphicCursor = record HotSpot : TPoint; Masks : array [0..1, 0..15] of Word; end; The hot spot specifies the pixel location inside the graphical mouse image where all mouse activity is tied to. The value is relative to the top left corner of the mouse image. Masks contains the screen and the cursor bitmaps. Refer to a mouse documentation for more information. 2.2. Variables const MouseInstalled : Boolean = False; Set True by InitMouse and SoftwareReset if a mouse driver is installed; otherwise set False. Use this variable to determine whether mouse support is available. var ButtonCount : Integer; ButtonCount holds the number of buttons on the mouse. A value of 0 indicates that the number of buttons is other than two. The value is set by InitMouse and SoftwareReset. var MouseState : ShortInt; This is a copy of the mouse driver internal counter. Changed by InitMouse, SoftwareReset, ShowMouse and HideMouse. See chapter 1.3 for more information. var RightButtonPressed : Boolean; LeftButtonPressed : Boolean; CenterButtonPressed : Boolean; Contain the current state of the mouse buttons. They are updated by ReadMouse, GetMouseDown, GetMouseUp, MouseTo and SetMouseRange ( the last two automatically call ReadMouse ). var MouseX : Integer; MouseY : Integer; Contains the current position of the mouse in virtual coordinates. Updated by ReadMouse, MouseTo and SetMouseRange ( the last two automatically call ReadMouse ). ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Chapter 3. Procedures and functions ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý InitMouse function Þ ßßßßßßßßßßßßßßßßßßßßßß Declaration: function InitMouse : Integer; Resets the mouse driver. Sets MouseInstalled to True if a mouse driver is installed, or to False if a mouse driver could not be found. Sets ButtonCount to the number of buttons on the mouse. Sets MouseState and the internal indicator to -1 ( indicates a hidden mouse cursor ). Sets the light pen emulation mode on. Sets the horizontal mickey ratio to 8 mickeys/second and the vertical mickey ratio to 16 mickeys/second. Sets the horizontal and vertical range for mouse movements to the whole screen. Returns the status of the mouse driver. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý ShowMouse procedure Þ ßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure ShowMouse; Increments the mouse driver internal counter unless it is 0. Updates MouseState. See chapter 1.2 for more information. See also: HideMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý HideMouse procedure Þ ßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure HideMouse; Decrements the mouse driver internal counter. Updates MouseState. See chapter 1.2 for more information. See also: ShowMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý ReadMouse procedure Þ ßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure ReadMouse; Reads the position of the mouse and the state of the buttons. Updates MouseX and MouseY with the current position of the mouse. Updates RightButtonPressed, LeftButtonPressed and CenterButtonPressed to reflect the state of the buttons. See chapter 1.3 for more information. See also: MouseTo ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý MouseTo procedure Þ ßßßßßßßßßßßßßßßßßßßßß Declaration: procedure MouseTo(const X, Y : Integer); Places the mouse cursor at the specified position. X and Y are truncated to the next lower multiple of the cell size. Automatically calls ReadMouse. See chapter 1.4 for more information. See also: ReadMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseDown function Þ ßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseDown(const Button : Integer; var LastX, LastY : Integer) : Integer; Returns the number of times a button was pressed since the last call. Button can be one of the following: 0 The left button 1 The right button 2 The center button (LastX, LastY) is the position of the mouse when it was last pressed. Also updates RightButtonPressed, LeftButtonPressed and CenterButtonPressed to reflect the current state of the buttons. See also: GetMouseUp ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseUp function Þ ßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseUp(const Button : Integer; var LastX, LastY : Integer) : Integer; Returns the number of times a button was released since the last call. Button can be one of the following: 0 The left button 1 The right button 2 The center button (LastX, LastY) is the position of the mouse when it was last released. Also updates RightButtonPressed, LeftButtonPressed and CenterButtonPressed to reflect the current state of the buttons. See also: GetMouseDown ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMouseRange procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMouseRange(const MinX, MinY, MaxX, MaxY : Integer); Sets the horizontal and vertical range for mouse movements. After this call the mouse movements will be limited to the region (MinX, MinY, MaxX, MaxY). If the mouse cursor is outside this zone it will be moved inside, near the border. Automatically calls ReadMouse. See also: GetMouseMinX, GetMouseMinY, GetMouseMaxX, GetMouseMaxY, GetMouseRange, HideMouseIn ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetGraphicCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetGraphicCursor(const NewShape : TGraphicCursor); Defines the shape of the graphic mouse cursor. See TGraphicCursor type from chapter 2.1 for more information. See also: GetMouseHotSpotX, GetMouseHotSpotY, DefineGraphicCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetTextCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetTextCursor(const ScreenMask, CursorMask : Word); Defines the mouse cursor appearance in text modes. The char and attribute data at the current screen position is ANDed with the screen mask and then XORed with the cursor mask. See also: SetHardwareCursor, GetTextCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetHardwareCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetHardwareCursor(const FirstLn, LastLn : Word); Causes the existing hardware cursor to be used as the text mouse cursor. Also defines the shape of the hardware cursor. FirstLn is the start scan line and LastLn is the end scan line. See also: SetTextCursor, GetHardwareCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseMove procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetMouseMove(var X, Y : Integer); Returns the number of mickeys moved since last call. A mickey is the smallest increment the mouse can sense. X returns the number of mickeys moved horizontally. A positive value indicates a move right and a negative value indicates a move left. Y returns the number of mickeys moved vertically. A positive value indicates a move up and a negative value indicates a move down. See also: ReadMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetLightPenEmulation procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetLightPenEmulation(const LightPen : Boolean); Enables or disables the light pen emulation mode. See also: InitMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMickeyRatio procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMickeyRatio(const X, Y : Integer); Defines the mickey/pixel ratio. X is the number of mickeys per 8 pixels horizontally ( default 8 ). Y is the number of mickeys per 8 pixels vertically ( default 16 ). See also: InitMouse, GetMouseSensitivity ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý HideMouseIn procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure HideMouseIn(const X1, Y1, X2, Y2 : Integer); Defines a region where the mouse cursor will be hidden until you explicitly turned it on again. See also: ShowMouse, HideMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý DefineGraphicCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function DefineGraphicCursor(const Width, Height, HotSpotX, HotSpotY : Byte; const Masks) : Integer; Defines a large graphic cursor block. Width is cursor width in words. Height is the number of rows in cursor. HotSpotX is the horizontal hot spot ( -16 to 16 ). HotSpotY is the vertical hot spot ( -16 to 16 ). Masks contains the screen and the cursor bitmaps. See also: GetMouseHotSpotX, GetMouseHotSpotY, SetGraphicCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMouseThreshold procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMouseThreshold(const Threshold : Integer); Sets the mouse double speed threshold. When the mouse speed exceeds threshold, the mouse moves twice faster ( with double speed ). Threshold is measured in mickeys per second. A mickey is the smallest increment the mouse can sense. The default value is 0, representing 64 mickeys/second. See also: GetMouseSensitivity, SetMouseSensitivity, SetMickeyRatio ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý DriverStateSize function Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function DriverStateSize : Integer; Returns the size of the buffer needed to store the mouse driver state. See also: SaveDriverState, RestoreDriverState ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SaveDriverState procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SaveDriverState(const Size : Integer; var Buf); Saves the mouse driver state into a buffer. Use DriverStateSize to determine the required size of the buffer. See also: DriverStateSize, RestoreDriverState ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý RestoreDriverState procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure RestoreDriverState(const Size : Integer; const Buf); Restores the mouse driver state from a buffer. Use with DriverStateSize and SaveDriverState. Some mouse drivers check the values in the saved state based using the current video mode, so you should restore the video mode before calling RestoreDriverState. See also: DriverStateSize, SaveDriverState ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMouseSensitivity procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMouseSensitivity(const Horiz, Vert, Threshold : Integer); Sets the mouse sensitivity and the double speed threshold. See also: GetMouseSensitivity, SetMouseThreshold, SetMickeyRatio ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseSensitivity procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetMouseSensitivity(var Horiz, Vert, Threshold : Integer); Returns the mouse sensitivity and the double speed threshold. See also: SetMouseSensitivity, SetMouseThreshold, SetMickeyRatio ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMousePage procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMousePage(const Page : Integer); Sets the display page number for the mouse cursor. See also: GetMousePage ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMousePage function Þ ßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMousePage : Integer; Returns the display page number for the mouse cursor. See also: SetMousePage ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SoftwareReset function Þ ßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function SoftwareReset : Integer; Software resets the mouse driver. Sets MouseInstalled to True if a mouse driver is installed, or to False if a mouse driver could not be found. Sets ButtonCount to the number of buttons on the mouse. Sets MouseState and the internal indicator to -1 ( indicates a hidden mouse cursor ). Places the mouse cursor in the center of the screen. See also: InitMouse ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý SetMouseLanguage procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure SetMouseLanguage(const Language : Integer); Sets the language used by the mouse for its text messages. Only available if you have an international version of the mouse driver ( the US version of the driver ignores this call ). Language is one of the following : 00h English 01h French 02h Dutch 03h German 04h Swedish 05h Finnish 06h Spanish 07h Portugese 08h Italian See also: GetMouseLanguage ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseLanguage function Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseLanguage : Integer; Returns the language used by the mouse for its text messages. Only available if you have an international version of the mouse driver ( the US version of the driver always returns zero ). See also: SetMouseLanguage ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý MouseVersion function Þ ßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function MouseVersion : Integer; Returns the mouse driver version number. The high byte is the major version number, and the low byte is the minor version number. On error it returns -1. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý MouseIRQ function Þ ßßßßßßßßßßßßßßßßßßßßß Declaration: function MouseIRQ : Byte; Returns the mouse interrupt ( 0 - PS/2, 2 - IRQ2, 3 - IRQ3, ... , 7 - IRQ7 ). On error it returns 255. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý MouseType function Þ ßßßßßßßßßßßßßßßßßßßßßß Declaration: function MouseType : Byte; Returns the mouse type ( 1 - bus, 2 - serial, 3 - InPort, 4 - PS/2, 5 - HP ). On error it returns 255. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý MouseCursor function Þ ßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function MouseCursor : Byte; Returns the mouse cursor type: 0 Text cursor ( software ) 1 Text cursor ( hardware ) 2 or 3 Graphic cursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseMaxRange procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetMouseMaxRange(var MaxX, MaxY : Integer); Returns the horizontal and vertical upper range for mouse movements. See also: GetMouseMinX, GetMouseMinY, GetMouseMaxX, GetMouseMaxY, GetMouseRange, SetMouseRange ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetTextCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetTextCursor(var ScreenMask, CursorMask : Word); Returns the mouse cursor appearance in text modes. The char and attribute data at the current screen position is ANDed with the screen mask and then XORed with the cursor mask. See also: GetHardwareCursor, SetTextCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetHardwareCursor procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetHardwareCursor(var FirstLn, LastLn : Word); Returns the shape of the existing hardware cursor if it is used as the text mouse cursor. FirstLn is the start scan line and LastLn is the end scan line. See also: GetTextCursor, SetHardwareCursor ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseState function Þ ßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseState : ShortInt; Returns the mouse driver internal counter and corrects MouseState if necessary. See chapter 1.2 for more information. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseHotSpotX function Þ Ý GetMouseHotSpotY function Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseHotSpotX : Integer; function GetMouseHotSpotY : Integer; Return the column and the row of the hot spot. The hot spot specifies the pixel location inside the graphical mouse image where all mouse activity is tied to. The value is relative to the top left corner of the mouse image. ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseMinX function Þ Ý GetMouseMinY function Þ Ý GetMouseMaxX function Þ Ý GetMouseMaxY function Þ ßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: function GetMouseMinX : Integer; function GetMouseMinY : Integer; function GetMouseMaxX : Integer; function GetMouseMaxY : Integer; equivalent to ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý GetMouseRange procedure Þ ßßßßßßßßßßßßßßßßßßßßßßßßßßß Declaration: procedure GetMouseRange(var MinX, MinY, MaxX, MaxY : Integer); Return the horizontal and vertical range for mouse movements. The mouse can be moved only inside the region (GetMouseMinX, GetMouseMinY, GetMouseMaxX, GetMouseMaxY). You can get both the horizontal and vertical range at the same time by calling GetMouseRange. See also: SetMouseRange, GetMouseMaxRange ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ Ý TextX function Þ Ý TextY function Þ Ý VirtualX function Þ Ý VirtualY function Þ ßßßßßßßßßßßßßßßßßßßßß Declaration: function TextX(const X : Integer) : Integer; function TextY(const Y : Integer) : Integer; function VirtualX(const X : Integer) : Integer; function VirtualY(const Y : Integer) : Integer; TextX and TextY convert virtual mouse coordinates ( stored by ReadMouse in MouseX and MouseY ) to text coordinates. VirtualX and VirtualY convert text coordinates to virtual mouse coordinates ( to be used by MouseTo, SetMouseRange, HideMouseIn ). See chapters 1.3 and 1.4 for more information. ÍÍ END OF MANUAL.DOC ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ