HbListBox() > Methods xHarbour Developers Network  

oHbListBox:scroll()

Scrolls items in the list box.

Syntax

:scroll( <nMode> ) --> self

Arguments

<nMode>
This is a numeric value indicating how to scroll the list box. It is usually the return value of the :hitTest() method when a list box is displayed with a vertical scroll bar. The following #define constants from the Button.ch file can be used for <nMode>:

Constants for the :scroll() method
ConstantValueDescription
HTSCROLLUNITDEC-3074Scroll down one line
HTSCROLLUNITINC-3075Scroll up one line
HTSCROLLBLOCKDEC-3076Scroll down one page
HTSCROLLBLOCKINC-3077Scroll up one page

Description

Method :scroll() scrolls the items visible in the list box window up or down by one line or an entire page. This is usually done in response to a scroll bar being clicked with the mouse when the list box is displayed with a vertical scroll bar.


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