This help page explains how to handle a TimeLine control by programming. The example proposed in illustration is used to store the events in a HFSQL database.
Adding a track
Adding an event
// Adds a 5-second event into a TimeLine control configured to the second
MyTrack is string
MyTitle is string
EvtStart is int
EvtEnd is int
MyTrack = "Strings"
MyTitle = "Start"
EvtStart = 4
EvtEnd = 9
TimelineAddEvent(TL_Music, MyTrack, MyTitle, EvtStart, EvtEnd)
时间轴删除全部（TL_Robots）Evt是事件时间轴型时间线添加磁道（TL_Robots，"Robot 1"）Evt..磁道＝"Robot 1"Evt..标题＝"Startup"Evt..开始＝10Evt..结束＝150Evt..背景颜色＝浅绿色时间轴添加事件（TL_Robots，Evt）Evt..磁道＝"Robot 1"Evt..标题＝"Special process"Evt..开始＝150Evt..结束＝450Evt..背景颜色＝柔和蓝色时间轴添加事件（TL_Robots，Evt）
The ..背景颜色 property of the 事件时间轴 variable is used to define a display color for an event. If no background color is defined, the TimeLine control will automatically use the color associated with the category of the event.
Filling a TimeLine control with the data found in a HFSQL data file
Retrieving a list of events
// Array containing a list of eventsarrEvtList是事件时间轴型的数组型【0】// List of eventsarrEvtList＝时间轴事件列表（TL_Timeline）
// List of events for robot 1 found between 50s and 100sarrEvtList是事件时间轴型的数组型【0】arrEvtList＝时间轴事件列表（TL_Robots，"Robot 1"，50，100）
// Selected eventarrEvtList是事件时间轴型的数组型【0】arrEvtList＝时间轴事件列表（TL_Robots，计划.选定预约）
Deleting an event
Deleting a track
Modifying the display of the control
In the relevant process, all you have to do is retrieve the event currently used and perform the corresponding process.
Example: To store in an "EVT" data file an event added by the user via the popup menu, all you have to do is enter in the "Enter an event in input" process:
These procedures receive in parameter an 事件时间轴 variable affected by the process.
Advanced use of processes with procedure
In the code, all you have to do is open the window in the "Enter the event in input" process. To lock the direct input, the process must return 假.
This principle can be applied to all the processes called via the popup menu of the TimeLine control.
Example: Opening a window for entering the event.
J'accepte les termes de la licence
All you have to do is configure your product as follows: