Method XbpListBox():setTopItem() Foundation

Sets the first item visible at the top of the list box.

:setTopItem( <nPos> ) --> lSuccess
<nPos> is a numeric value specifying the first item visible in the list box. This value is the item's ordinal position in the list of the XbpListbox object.

This method returns the value .T. (true) when the first item visible in the list box could be set, otherwise it returns .F. (false).


The :setTopItem() method allows the first item in the display window of the XbpListbox object to be defined. This is used to explicitly scroll the list.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.