Modifies the period (which means the number of seconds, milliseconds, microseconds, ...) displayed by a TimeLine control.
// Click on BTN_Seconds
// Displays 2 minutes
TimelineChangeMode(TL_TimeLine, schModeSecond, 120)
TL_TimeLine..GranularityMovement = 5
TL_TimeLine..GranularityDuration = 1
Syntax
TimelineChangeMode(<TimeLine control> , <Display mode> [, <Range>])
<TimeLine control>: Control name
Name of TimeLine control used.
<Display mode>: Integer constant
Time range that must be displayed in the TimeLine control:
| |
schModeDay | Displays the TimeLine control while taking the day as display resolution. |
schModeMicrosecond | Displays the TimeLine control while taking the microsecond as display resolution. |
schModeMillisecond | Displays the TimeLine control while taking the millisecond as display resolution. |
schModeMonth | Displays the TimeLine control while taking the month as display resolution. |
schModeCustomNbDay | Displays the TimeLine control on the number of days specified in <Range>. |
schModeSecond | Displays the TimeLine control while taking the second as display resolution. |
schModeWeek | Displays the TimeLine control on a 5-day week or on a 7-day week. The number of days is specified in <Range>. |
<Range>: Optional integer
Total range to display in the TimeLine control while taking the new unit into account.