PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds an event into a TimeLine control.
Example
// 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)
TimelineDeleteAll(TL_Robots)
Evt is EventTimeline

TimelineAddTrack(TL_Robots, "Robot 1")
Evt..Track = "Robot 1"
Evt..Title = "Startup"
Evt..Start = 10
Evt..End = 150
Evt..BrushColor = LightGreen
TimelineAddEvent(TL_Robots, Evt)
Syntax

Adding an element while specifying its characteristics Hide the details

<Result> = TimelineAddEvent(<TimeLine Control> , <Track> , <Title> , <Start> [, <End> [, <Category>]])
<Result>: Integer
  • Subscript of added event,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
Note: The added event can be handled via its subscript by using the following notation: <Name of TimeLine Control>[<Subscript>]. You have the ability to modify the properties of this element.
<TimeLine Control>: Control name
Name of TimeLine control into which the event will be added.
<Track>: Character string (with quotes)
Name of track associated with the event.
<Title>: Character string (with quotes)
Title of event.
<Start>: Integer
Start of event. This parameter is expressed in the unit chosen for the display resolution of TimeLine control. If the display resolution is the second, this parameter will correspond to the start time of the event expressed in seconds.
Note: The display resolution can be modified:
<End>: Optional integer
End of event. This parameter is expressed in the unit chosen for the display resolution of TimeLine control.
If this parameter is not specified, the default duration of event will be set to 1 unit.
<Category>: Optional character string (with quotes)
Name of category associated with the event. If this parameter is not specified, the event is associated with no category. The category is automatically created if it does not exist.

Adding an event into a TimeLine control while using the EventTimeline type Hide the details

<Result> = TimelineAddEvent(<Timeline Control> , <Event>)
<Result>: Optional integer
  • Subscript of added event,
  • -1 if an error occurred. ErrorInfo is used to identify the error.
Note: The added event can be handled via its subscript by using the following notation: <Name of TimeLine Control>[<Subscript>]. You have the ability to modify the properties of this element.
<Timeline Control>: Control name
Name of TimeLine control into which the event will be added.
<Event>: EventTimeline variable
EventTimeline variable describing the characteristics of event to add.
Remarks
TimelineAddEvent is used to associate an event with a single track. To associate the same events with several tracks, TimelineAddEvent must be called for each track.
Components
WINDEVReports and Queries wd230mdl.dll
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment