SP_RAT_ROWR

RAT_ROWR() Returns mouse row at the last right button press

 Returns
 <nRow> => mouse row at last right button press

 Syntax
 RAT_ROWR()

 Description
 Returns mouse row at the last right button press (as
 recorded by a call to rat_rightb() )

 Examples
  if rat_rightb()

    ?"While you were out:"

    ?"Right button was depressed at"

    ??rat_rowr(),rat_colr()

  endif

 Notes:
 This is different from RAT_ROW() in that RAT_ROW()
 tells the mouse row NOW wherease RAT_ROWR() tells where the
 mouse was at the last recorded right button press (as recorded
 by a call to rat_rightb() )

 Source: S_MOUSE.ASM

SP_RAT_ROWL

RAT_ROWL() Returns mouse row at the last left button press

 Returns
 <nRow> => mouse row at last left button press

 Syntax
 RAT_ROWL()

 Description
 Returns mouse row at the last left button press (as
 recorded by a call to rat_leftb() )

 Examples
  if rat_leftb()

    ?"While you were out:"

    ?"Left button was depressed at"

    ??rat_rowl(),rat_coll()

  endif

 Notes:
 This is different from RAT_ROW() in that RAT_ROW()
 tells the mouse row NOW wherease RAT_ROWL() tells where the
 mouse was at the last recorded left button press (as recorded by
 a call to rat_leftb() )

 Source: S_MOUSE.ASM

 

SP_RAT_ROW

RAT_ROW() Current mouse row

 Returns
 <nRow> => mouse row right now

 Syntax
 RAT_ROW()

 Description
 This gives the CURRENT mouse row

 Examples
  ?"Mouse is at row :",rat_row()

 Notes:
 This is different from RAT_ROWL() or RAT_ROWR() in
 that these two functions return the recorded row when the mouse
 button was last pressed, RAT_ROWL() for left or RAT_ROWR() for
 right.

 This function tells where the mouse is right now.

 Source: S_MOUSE.ASM

 

SP_RAT_RIGHTB

RAT_RIGHTB() Determines if the right mouse button has been
 pressed

 Returns
 <lHasBeenPressed> => right mouse button has been
 pressed

 Syntax
 RAT_RIGHTB()

 Description
 This returns .t. if the right button has been pressed
 since last call to this function. Row and column are recorded
 for reference by rat_rowr() and rat_colr().

 Examples
  if rat_rightb()

    ?"While you were out:"

    ?"Left button was depressed at"

    ??rat_rowr(),rat_colr()

  endif

 Notes:
 This is different from RAT_RBHD() in that RAT_RBHD()
 is a 'right now' function - determining if the button IS
 depressed, whereas this function determines if the button HAS
 been depressed.

 Source: S_MOUSE.ASM

SP_RAT_RBHD

RAT_RBHD() Determines if the mouse right button is currently
 depressed

 Returns
 <lDepressed> => mouse right button is currently
 depressed

 Syntax
 RAT_RBHD()

 Description
 Determines if the mouse right button is currently
 depressed

 Examples
  if RAT_RBHD()

    ?"Mouse right button depressed NOW"

  endif

 Notes:
 This is different from the event function
 RAT_ERBHD(). RAT_ERBHD(<n>) watches the mouse for <n> seconds,
 and if the mouse remains depressed for the full time, then it is
 considered to be HELD DOWN. RAT_RBHD() on the other hand, only
 checks for the mouse button being depressed RIGHT NOW.
 RAT_ERBHD() calls RAT_RBHD() repetitively.

 Source: S_MOUSE.ASM

 

SP_RAT_LEFTB

 RAT_LEFTB() Determines if the left mouse button has been

 pressed

 Returns
 <lHasBeenPressed> => left mouse button has been
 pressed

 Syntax
 RAT_LEFTB()

 Description
 This returns .t. if the left button has been pressed
 since last call to this function. Row and column are recorded
 for reference by rat_rowl() and rat_coll().

 Examples
  if rat_leftb()

    ?"While you were out:"

    ?"Left button was depressed at"

    ??rat_rowl(),rat_coll()

  endif

 Notes:
 This is different from RAT_LBHD() in that RAT_LBHD()
 is a 'right now' function - determining if the button IS
 depressed, whereas this function determines if the button HAS
 been depressed.

 Source: S_MOUSE.ASM

 

SP_RAT_LBHD

RAT_LBHD() Determines if the mouse left button is currently
 depressed

 Returns
 <lDepressed> => mouse left button is currently
 depressed

 Syntax
 RAT_LBHD()

 Description
 Determines if the mouse left button is currently
 depressed

 Examples
  if RAT_LBHD()
    ?"Mouse left button depressed NOW"
  endif

 Notes:
 This is different from the event function
 RAT_ELBHD(). RAT_ELBHD(<n>) watches the mouse for <n> seconds,
 and if the mouse remains depressed for the full time, then it is
 considered to be HELD DOWN. RAT_LBHD() on the other hand, only
 checks for the mouse button being depressed RIGHT NOW.
 RAT_ELBHD() calls RAT_LBHD() repetitively.

 Source: S_MOUSE.ASM

 

SP_RAT_ELBHD

RAT_ELBHD()

  Short:
  ------
  RAT_ELBHD() Determines if left mouse button is held down

  Returns:
  --------
  <lHeldDown> => is LMB held down

  Syntax:
  -------
  RAT_ELBHD([nSeconds])

  Description:
  ------------
  Determines if left mouse button is held down by
  calling the ASM function RAT_LBHD() for [nSeconds]. Default is .1
  seconds.

  If the left mouse button is held down during that
  time frame, True is returned, else False is returned.

  Note: the ASM function RAT_LBHD() returns a logical
  value if the left mouse button is depressed RIGHT NOW, but
  does not take a duration of [nSeconds] into account, which is needed
  to determine if it is depressed and HELD DOWN.

  [nSeconds]  is optional seconds to test for. Default
  is .1 seconds.

  Examples:
  ---------
   if rat_elbhd()

     ?"While you were out:"

     ?"Left button was depressed and held down at"

     ??rat_eqmrow(),rat_eqmcol()

   endif

  Source:
  -------
  S_MOOSE.PRG

See Also : RAT_EQMROW(), RAT_EQMCOL(), RAT_ERBHD(), RAT_EVENT(), 
           RAT_ISMOUSE(), RAT_LASTEV(), RAT_MENU2(), RAT_READ()