Returns the first visible item in the control
object.GetFirstVisible()
Newlook Smartclient only.
This method takes into account the current horizontal scrolling position of the control and can be used to determine what the first visible item is at any point in time.
For the ListView control, the View property must be set to ViewList to use this method.
None.
This method returns an integer value representing the index of the first item visible in the list view control.
The following example returns the index of the first visible item in the lvMembers list view control:
function GetFirstVisibleItem()
{
//Get the item that is currently at the top of the visible list.
vFirstVisibleItem = App.ActiveForm.lvMembers.GetFirstVisible()
}
Sub GetFirstVisibleItem
vFirstVisibleItem = App.ActiveForm.lstTest.GetFirstVisible
App.MsgBox "The first visible item is: " & vFirstVisibleItem & ".", "Return Value"
End Sub
This method takes into account the current vertical scrolling position of the control and can be used to determine what the first visible item is at any point in time.
None.
This method returns a node object representing the node that is the top-most visible in the tree view control.
The following example assigns the text of the first visible node in the tvOrgChart tree view control to a global Newlook variable:
function GetFirstVisibleNode()
{
//Get the item that is currently at the top of the visible tree view.
vFirstVisibleNode = App.ActiveForm.tvOrgChart .GetFirstVisible().Text
App.SetValue("TopNode", vFirstVisibleNode);
}
Index Property | ListItems collection
© 2004-2021 looksoftware. All rights reserved.