TopBarMenu() > Menu display and selection xHarbour Developers Network  

oTopBarMenu:hitTest()

Checks if a menu item is clicked with the mouse.

Syntax

:hitTest( <nMouseRow>, <nMouseCol> ) --> nMenuItemPos

Arguments

<nMouseRow>
This is the numeric row position of the mouse cursor. It can be queried using function MRow().
<nMouseCol>
This is the numeric column position of the mouse cursor. It can be queried using function MCol().

Description

Method :hitTest() accepts the numeric row and column position of the mouse cursor and returns a numeric value indicating the ordinal position of the menu item that is underneath the mouse cursor. If the mouse is outside the menu bar, the return value is zero.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe