PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The RulerModifiable property is used to:
  • Find out whether the user can move the playhead in a TimeLine control.
  • Allow or prevent the user from moving the playhead in a TimeLine control .
Reminder: The playhead of a TimeLine control is a bold vertical line that represents a specific point in the control. The style of the playhead can be defined in the "Style" tab of the TimeLine control ("Selected time").
Example
// Click on the BTN_Modify button
TL_TimeLine.RulerModifiable = True
 
// Whenever the TimeLine control is modified
// (Code run whenever the playhead is moved by the user)
// Display the selected position in the Static control
STC_RulerPosition = TL_TimeLine.RulerValue
Syntax

Finding out whether the user can move the playhead Hide the details

<Result> = <TimeLine control>.RulerModifiable
<Result>: Boolean
  • True if the playhead can be moved by the user,
  • False otherwise.
<TimeLine control>: Control name
Name of TimeLine control used.

Allowing or preventing the user from moving the playhead Hide the details

<TimeLine control>.RulerModifiable = <Modifiable or not>
<TimeLine control>: Control name
Name of TimeLine control used.
<Modifiable or not>: Boolean
  • True to allow the user to move the playhead,
  • False otherwise.
Remarks
  • The user can move the playhead:
    • if the "Movable playhead" option is checked in the description window of the TimeLine control.
    • if the RulerModifiable property is set to True.
  • The default position of the playhead corresponds to the value of the StartTotalRange property.
  • 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 new position of the playhead is returned by the RulerValue property.
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment