Version: 6.5.x and 6.7.x
The following technique gives the user an ability to display a marker for the selected item in scrollable area.
In the example, two scrollable areas are created: sArea1 and sArea2.
The first thing that you need to do is to assign a value for each element of the array. In this example, suppose the elements of both objects are created procedurally when the On Load event is executed.
If(Form event=On Load)
Note: sArea2 also has a maximum of 5 elements each of which each element is an empty string (""). This object will be used to display the marker when the user clicks on an item.
Important: Both scrollable areas must have the same number of elements.
Place the following code in the object method of both scrollable areas and make sure the On Clicked form event is selected for both of them.
If (Form event=On Clicked )
Create the following project method.
` Project Method: SetElementChecker
` $1 - Pointer to the array to turn on the marker
` $2 - Selected position
Group both scrollable areas together. To do this, you need to highlight both object and select "Group" from the Object menu or use the Group tool from the Tools palette.
Here are the results when the user clicks on Element 1, Element 3 and Element 4.