HbRadioButton() > Methods xHarbour Developers Network  

oHbRadioButton:hitTest()

Tests if a radio button is hit by the mouse cursor.

Syntax

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

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 whether or not the mouse cursor is located within the HbRadioButton object. #define constants are available in the BUTTON.CH file identifying the return value of :hitTest().

Return values of oHbRadioButton:hitTest()
ConstantValueDescription
HTNOWHERE0Mouse cursor is outside the radio button and its caption
HTCAPTION-1025Mouse cursor is inside the radio button's caption
HTCLIENT-2049Mouse cursor is inside the radio button


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