Page History
Grid Item - EnsureVisible Property
| Panel | ||
|---|---|---|
| ||
Scroll a list so that the item is within the visible area |
Member of Grid Item (PRIM_GDIT)
Data Type - Boolean
Details
Setting EnsureVisible to True will move the item so that it is within the visible portion of the list.
Example
The example below shows a simple routine that looks through a list for a name.
When a match is found the item is moved in to into view.
| No Format |
|---|
Mthroutine Name(Find) |
...
Define_Map For(*input) Class(#Prim_alph) Name(#Name) |
...
Selectlist Named(#List) |
...
Continue If(#Surname <> #Name) |
...
#List.CurrentItem.EnsureVisible := |
...
True Leave Endselect Endroutine |