Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TSDWIN: Clipper 5.0 Interface Library - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

 twAddMSpot( aMouseSpot, nNxtHandl, aDef, nHandle )
 ----------------------------------------------------------------------------
     Add a mouse Hot Spot to an array of hot spots held in the caller.
     TSDWIN mouse supported functions all have auxiliary functions
     which simplify this call for you.

       Arguments:

     aMouseSpot - 'A' An array in the caller in which to store the hot
                      spot being defined.

     nNxtHandl  - 'N' The next free spot in the array. This parameter
                      must be called by reference.

     aDef       - 'A' An array defining the hot spot. It should at the
                      very minimum contain the coordinates of the spot
                      and a code block to execute. See, for example,
                      twRAHotSpot() to see how this function is called
                      by TSDWIN functions.

     nHandle    - 'N'

       Return:

     The handle of the hot spot so that it MAY BE  RELEASED later.

       Example:

     This function creates a hot spot. The function is defined in the
     calling program file which also contains a file-wide STATIC called
     'aMouseSpot' to hold the hot spot information. When you use this
     method, be sure to restore the static to {} when exiting.

        FUNCTION HotSpot( nRowTop, nColLeft, nRowBot, ;
                          nColRight, bAction, nButton,;
                          nPause, lRelease )
        RETURN twAddMSpot( aMouseSpot, @nNxtHandl,;
                {nRowTop, nColLeft, nRowBot, nColRight, bAction,;
                IIF( nPause = NIL, twSetMPause(), nPause ),;
                IIF( lRelease = NIL, twSetMRTime(), lRelease ),;
                IIF( nButton = NIL, 0, nButton ), .T.

See Also: twDelMSpot() twMAddSpot()

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