AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
The RulerValue property is used to get or change the position of the playhead in a TimeLine control.
Reminder The ruler of a TimeLine control corresponds to a "bold" vertical line that allows you to view a given moment in the field. The style of the playhead can be defined in the "Style" tab of the TimeLine control ("Selected time").
Ejemplo
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)

// Positions the playhead at a specific point
TL_Robots.RulerVisible = True
TL_Robots.RulerValue = 300

// -- Code for modifying the TimeLine control
// Displays the selected value in the static
STC_TimeLineRuler = TL_Robots.RulerValue
Sintaxis

Finding out the value of the playhead Ocultar los detalles

<Result> = <TimeLine control>.RulerValue
<Result>: Integer
Current position of the playhead. The unit used is identical to the one used for displaying the TimeLine control (second, millisecond of microsecond).
<TimeLine control>: Control name
Name of the TimeLine control to be used.

Modifying the value of the playhead Ocultar los detalles

<TimeLine control>.RulerValue = <New position>
<TimeLine control>: Control name
Name of the TimeLine control to be used.
<New position>: Integer
New position of the playhead. The unit used is identical to the one used for displaying the TimeLine control (second, millisecond of microsecond). This value must be between the values of the StartTotalRange and EndTotalRange properties, otherwise the playhead will be invisible.
Observaciones
  • The ruler can be modified by the user:
    • if the "Cabezal desplazable" option is checked in the description window of the TimeLine control.
    • if the RulerModifiable property is set to True.
  • The end user can change the value of the playhead by moving it with the mouse. This action triggers the "Whenever modifying" event of the TimeLine control.
  • The default position of the playhead corresponds to the value of the StartTotalRange property.
Versión mínima requerida
  • Versión 18
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 10/05/2025

Señalar un error o enviar una sugerencia | Ayuda local