Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfmenuscan()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfMenuScan()
Looks for a menu label at a given coordinate
------------------------------------------------------------------------------
Syntax:

     dfMenuScan( <aMenu>, <nRow>, <nCol> ) --> cLab

Parameters:

     <aMenu>    Menu array.
     <nRow>     Row.
     <nCol>     Column.

Returns:

     <cLab> Menu label.

Description:

     Returns the menu label displayed at given screen coordinates . If the
     menu label is not found, an empty string is returned. The research is
     only performed at the first menu level.

Example:

     LOCAL aMenu := {}
     dfMenuAdd( aMenu, "1", MN_LABEL ,;
                {||MN_ON}, {||.T.}, "Procedure"   ,;
                "ins",{||CliDeExe(DE_STATE_INK)}  ,;
                "Data Entry" )
     dfMenuAdd( aMenu, "2", MN_LABEL ,;
                {||MN_ON}, {||.T.}, "Report"      ,;
                "add",{||CliPrnExe(DE_STATE_INK)} ,;
                "Report" )
     dfMenu( aMenu, 1,1,24,79,,;
             dfMenuScan( aMenu, M_PosY(), M_PosX() ) )

See also:

     dfMenu()

See Also: dfMenu()

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