| HbScrollBar() > Methods |
![]() |
![]() |
Tests if a scroll bar is hit by the mouse cursor.
:hitTest( <nRow>, <nCol> ) --> nHitCode
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()
| Constant | Value | Description |
|---|---|---|
| HTNOWHERE | 0 | Mouse cursor is outside the scroll bar |
| HTSCROLLTHUMBDRAG | -3073 | Mouse cursor is on the thumb |
| HTSCROLLUNITDEC | -3074 | Mouse cursor is on the Previous arrow |
| HTSCROLLUNITINC | -3075 | Mouse cursor is on the Next arrow |
| HTSCROLLBLOCKDEC | -3076 | Mouse cursor is between the Previous arrow and the thumb |
| HTSCROLLBLOCKINC | -3077 | Mouse cursor is between the thumb and the Next arrow |
http://www.xHarbour.com