Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_mdblclk()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FT_MDBLCLK()
 Return true if a double click was detected
------------------------------------------------------------------------------

 Syntax

     FT_MDBLCLK( [ <nClick> [, <nButton> [, <nInterval> [, <nRow> [, <nCol>;
                 [, <nTime> ] ] ] ] ] ] ) -> lIsDoubleClk

 Arguments

    <nClick> is a numeric value.  If it is zero FT_MDBLCLK() will not
             check for the first press but rather will simply wait the
             specified period for a single press. This is useful if this
             routine is called from one which in turn responded to a button
             press. If it is not present or not equal to 0, then FT_MDBLCLK()
             will wait for two presses of the specified button.

    <nButton> is the mouse button number
               0 - Left   Button
               1 - Right  Button
               2 - Middle Button [if applicable]

    <nInterval> is the interval to wait for the first click if requested
           and the time to wait for the second. If not present then defaults
           to 0.5 second.

    <nRow> is the row number for the mouse cursor location for a double click
           to be valid. If not present then the current position is taken as
           the valid location.

    <nCol> is the column number for the mouse cursor location for a double
           click to be valid. If not present, then the current position is
           taken as the valid location.

    <nTime> is an optional start time for the waiting period for the first
           click (of either one or two requested). If not given then the
           time is set at entry into this routine. This is useful when this
           routine is called from another routine which was called in
           response to a mouse click but needs to know if a double click
           has occurred

 Returns

    .T. if a double click was detected.

 Description

    This is a mouse meta function that checks for the presence
    of a double click.

 Examples

   IF FT_MISREGION( 10, 10, 11, 20 ) .AND.;
      FT_MDBLCLK(0,1,,FT_MGETX(),FT_MGETY())  && double click, right button
                                              && at current location with
                                              && default interval

         MnuItem1()
   ENDIF

 Source: MOUSE1.PRG

 Author: Leo Letendre

See Also: FT_MBUTPRS() FT_MBUTREL()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson