HbScrollBar() > Methods xHarbour Developers Network  

oHbScrollBar:hitTest()

Tests if a scroll bar is hit by the mouse cursor.

Syntax

:hitTest( <nRow>, <nCol> ) --> 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 HbScrollBar object. #define constants are available in the BUTTON.CH file identifying the return value of :hitTest().

Return values of oHbScrollBar:hitTest()
ConstantValueDescription
HTNOWHERE0Mouse cursor is outside the scroll bar
HTSCROLLTHUMBDRAG-3073Mouse cursor is on the thumb
HTSCROLLUNITDEC-3074Mouse cursor is on the Previous arrow
HTSCROLLUNITINC-3075Mouse cursor is on the Next arrow
HTSCROLLBLOCKDEC-3076Mouse cursor is between the Previous arrow and the thumb
HTSCROLLBLOCKINC-3077Mouse cursor is between the thumb and the Next arrow


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