[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_MBUTPRS()
 Retrieve button press status
------------------------------------------------------------------------------

 Syntax

     FT_MBUTPRS( <nButton> [, @nButPrs [, @nX [, @nY] ] ] ) -> nButStatus

 Arguments

    <nButton> is the mouse button number:

               0 - Left   Button
               1 - Right  Button
               2 - Middle Button [if applicable]

    <nButPrs> is the number of times the specified button was pressed
              since the last call to this routine. PASSED BY REFERENCE.
    <nX> is the X position of the cursor when the last press occurred.
              PASSED BY REFERENCE.
    <nY> is the Y position of the cursor when the last press occurred.
              PASSED BY REFERENCE.

 Returns

    An integer representing the button status:

               0 - no buttons pressed
               1 - left button pressed
               2 - right button pressed
               3 - left and right pressed
               4 - middle pressed
               5 - left and middle pressed
               6 - middle and right buttons pressed
               7 - all 3 buttons pressed

 Description

    Retrieves the mouse button status and the position of the cursor when
    a button was last pressed.

 Examples

    IF Empty( FT_MBUTPRS(1) )
       ? "No Item selected"
    ENDIF

 Source: MOUSE1.PRG

 Author: Leo Letendre

See Also: FT_MBUTREL() FT_MDBLCLK()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson