|
|
|
|
|
- Properties specific to TimelineEvent variables
- Functions that use EventTimeline variables
EventTimeline (Variable type) In french: EvénementTimeline
The EventTimeline type is used to define the advanced characteristics of an event. This event will be dispayed inside a TimeLine control. You can define and change the characteristics of this event using different WLanguage properties. The corresponding event can then be used with WLanguage functions for Timeline control management. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. TimelineDeleteAll(TL_Robots)
Evt is EventTimeline
TimelineAddTrack(TL_Robots, "Robot 1")
Evt.Track = "Robot 1"
Evt.Title = "Start"
Evt.Start = 10
Evt.End = 150
Evt.BackgroundColor = LightGreen
TimelineAddEvent(TL_Robots, Evt)
Evt.Track = "Robot 1"
Evt.Title = "Special process"
Evt.Start = 150
Evt.End = 450
Evt.BackgroundColor = PastelBlue
TimelineAddEvent(TL_Robots, Evt)
Evt.Track = "Robot 1"
Evt.Title = "Pause"
Evt.Start = 450
Evt.End = 700
Evt.BackgroundColor = LightRed
TimelineAddEvent(TL_Robots, Evt)
Evt.Track = "Robot 1"
Evt.Title = "Stop"
Evt.Start = 700
Evt.End = 750
Evt.BackgroundColor = PastelRed
TimelineAddEvent(TL_Robots, Evt)
Properties Properties specific to TimelineEvent variables The following properties can be used to handle an event: | | | Property name | Type used | Effect |
---|
Author | Character string | Name of the event author. If this property is not specified, the event has no author. | BackgroundColor | Integer | Background color used to display the event in the TimeLine control. This color can correspond to:If this property is not specified, a color will be automatically calculated. The events of the same category will have the same color.Before version 24, this property was named "BackgroundColor". | Category | Character string | Category of the event. If this property is not specified, the event is associated with no category. | Content | Character string | Detailed description of the event. The content is displayed in the TimeLine control. If this property is not specified, the event has no description. | End | Integer | End of event. This property must use the same unit as the one used to display the TimeLine control (second, millisecond or microsecond). This property must be specified. | New in version 2025Extra | Variant | Allows you to store advanced information without affecting the execution of the application. You can store values of any type (array, etc.). It is also possible to add members to the Extra property. Example:
MyVariable.Extra.Info1 = Value MyVariable.Extra[Info2] = Value2 MyVariable.Extra.Date = DateSys() | ID | Character string | Identifier associated with the event. Allows you to store the identifier of an element that must be associated with the element in order to use it later in programming. For example, this identifier can correspond to the identifier of a record in a database. | Image | Character string | Image associated with the event. This image is displayed in the TimeLine control (in addition to the logo that represents an important element if necessary).
This property can correspond to: - the path to an image accessible from the current computer,
- an image file found in the application library,
- an Image control containing an image,
- a drawing performed in an Image control with the drawing functions and saved in memory.
If this property is not specified, the event has no associated image.Note: It is necessary to use an internal window to display an image in the event. The simple style (proposed by default) cannot be used to display an image. | Importance | Integer | Importance of the event. If this property is equal to or greater than 1, an icon (  ) will be displayed in the TimeLine control to indicate an important event. If this property is not specified, its value is set to 0. | Note | Character string | Note associated with the event. If this property is not specified, no note is associated with the event. | Repetition | Repetition variable | Advanced parameters of repetition. This property is taken into account only if the WithRepetition property is set to True. | Start | Integer | Start of event. This property must use the same unit as the one used to display the TimeLine control (second, millisecond or microsecond). This property must be specified. | Title | Character string | Title of the event. The title is displayed in the Timeline control. If this property is not specified, the event has no title. | Tooltip | Character string | Tooltip displayed when the event is hovered. By default, this value includes the start and end times of the event as well as the event title. | Track | Character string | Track associated with the event. | WithRepetition | Boolean | - True if the event must be repeated,
- False if the event only happens once.
If the event is repeated, the Repetition property allows you to specify the frequency of the repetition. This property is set to False by default. |
Remarks Functions that use EventTimeline variables
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|