Type | Description | |||
Boolean | A Boolean expression that specifies whether the user can move by dragging the timer at runtime. |
In conclusion, the control supports:
The LayoutStartChanging(exScheduleMoveMarkTime) event notifies once the user is about to move a timer. The MarkTimeFromPoint property indicates the timer from the cursor. The LayoutEndChanging(exScheduleMoveMarkTime) event notifies your application once a MarkTime object is moved, at runtime.
The following snippet of code shows how to get notified once the user moves at runtime the timer. The sample holds the timer from the cursor once the LayoutStartChanging( exScheduleMoveMarkTime) event occurs, and when the LayoutEndChanging( exScheduleMoveMarkTime) event is fired, the previously saved timer, is displayed with the new time.
Dim mtChange As MarkTime
Private Sub Schedule1_LayoutStartChanging(ByVal Operation As EXSCHEDULELibCtl.LayoutChangingEnum) If (Operation = exScheduleMoveMarkTime) Then Set mtChange = Schedule1.MarkTimeFromPoint(-1, -1) End If End Sub Private Sub Schedule1_LayoutEndChanging(ByVal Operation As EXSCHEDULELibCtl.LayoutChangingEnum) If (Operation = exScheduleMoveMarkTime) Then If Not (mtChange Is Nothing) Then Debug.Print "Timer has been moved to " & mtChange.Time End If End If End Sub