|Double||A numeric expression that indicates the delay to display the date time when using the MarkNowColor property. The negative value of the MarkNowDelay property is added to the date-time to indicate the new time to be represented on the chart instead. The value could be 1 which indicates 1 day, 1/24 which indicates 1 hour, and 1/24/60 indicates 1 minute, and so on|
The following VB sample specifies a new starting point for marking the date time:
Private Sub G2antt1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) With G2antt1.Chart Dim d As Double d = .DateFromPoint(-1, -1) If (d = 0) Then .MarkNowDelay = 0 Else .MarkNowDelay = (.MarkNow + .MarkNowDelay) - d End If End With End Sub
Once you click a date within the chart, the vertical line will be show at your clicked position, and if the MarkNow property is Empty ( by default ), the counting will start from your clicked position.