Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > ListView Control > ListView: Items functions >

ListView_EnsureVisible

Previous pageReturn to chapter overviewNext page

 

Description

 

Ensures that a list-view item is either entirely or partially visible, scrolling the list-view control if necessary.

 

Syntax

 

n = ListView_EnsureVisible(hWnd, ctrlID, nItem, PartialOK)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the list-view control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

nItem

Number

No

The index of the list-view item. Starts from 1.

PartialOK

Number

No

A value specifying whether the item must be entirely visible.

If this parameter is %TRUE, no scrolling occurs if the item is at least partially visible.

 

Remarks

 

Restrictions

 

See also

 

Examples