The Scrollist is implemented in EPAM4 as a Container object. In other words, there is a scroll list definition $Scrollist=<name> which defines the scrollable objects and a declaration, #Scrollist=<name> in a page.
The Scrollist object can be adapted as follows:
1. | Copy the entire area from the #Page=<name> page, starting with the #Scrollist object, to a separate area in front of the page |
2. | #Scrollist should then be written at the first line in this new area. Replace #Scrollist with $Scrollist=<name> |
3. | All the subsequent objects now belong to the scroll list <name> and are moved together. The “scroll” option can be removed. |
4. | The position of all scroll objects is now referenced to the scroll object. The position of all objects must therefore be corrected accordingly. |
5. | The scroll list now has a line height in pixels, that is specified in the cell Limit2. The number of lines is calculated automatically. The ScrollY=<x> action is no longer required and can be deleted. |
6. | In page #Page=<name>, all scroll objects (Scroll option) must now be deleted. For this the Scrollist object must be assigned the name of the newly defined scroll list. #Scrollist=<name> |
Example
Scrollist definition
Object
|
Text/File
|
Font
|
X [Pixel]
|
Y [Pixel]
|
DX [Pixel]
|
DY [Pixel]
|
Color
|
Backcolor
|
Format
|
Action
|
Limit1
|
Limit2
|
$Scrollist=scroll1
|
|
|
|
|
|
|
black
|
white
|
Border=R1
|
|
|
50
|
#Button
|
myButton1
|
Arial12.FNT
|
0
|
0
|
100
|
50
|
black
|
grey
|
Border=Button
|
|
|
|
#Button
|
myButton2
|
Arial12.FNT
|
0
|
50
|
|
50
|
black
|
grey
|
Border=Button
|
|
|
|
#Button
|
myButton3
|
Arial12.FNT
|
0
|
100
|
|
50
|
black
|
grey
|
Border=Button
|
|
|
|
Scrollist declaration
Object
|
Text/File
|
Font
|
X [Pixel]
|
Y [Pixel]
|
DX [Pixel]
|
DY [Pixel]
|
Color
|
Backcolor
|
Format
|
Action
|
Limit1
|
Limit2
|
#Page=List
|
List
|
Arial12.FNT
|
0
|
0
|
640
|
480
|
black
|
white
|
Border=R1
|
|
|
|
#Button
|
X
|
Arial12.FNT
|
530
|
5
|
100
|
50
|
black
|
white
|
Border=Button
|
#Page=start
|
|
|
#Scrollist=scroll1
|
|
Arial12.FNT
|
40
|
95
|
400
|
200
|
black
|
|
|
|
|
|
See also
|