property Chart.ZoomOnFlyCaption as String
Specifies the caption to be shown in the zoom-on-fly panel, when the cursor hovers a bar.

 TypeDescription 
   String A String expression that may contain HTML tags and expressions that indicates the additional information about the bar from the cursor to be shown in the Zoom-OnFly view.    
By default, the ZoomOnFlyCaption property is "<c><b><%=%C0%></b><br><b>Start</b>:<%=%1%><br><b>End</b>:<%=%2%><br><b>Duration</b>:<%=((1:=int(0:= (%513))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')%><br><b>Working</b>:<%=((1:=int(0:= (%258))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 ? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')%>", which specifies that the ZoomOnFly panel displays the start, end, duration and working time of the item. Use the ZoomOnFlyCaption property to customize the additional information or caption to be shown on the bottom part of the Zoom-OnFly view, like shown in the picture bellow. The AllowZoomOnFly property specifies whether the user can display the Zoom-OnFly panel, when the cursor hovers the chart part of the area, and the user presses the CTRL + SHIFT keys combination.

The following screen shot shows the default caption in the Zoom-OnFly view:

 

By default, the caption of the Zoom-on-fly includes the following information:  Let's say that we have the Chart.ZoomOnFlyCaption on "<br><c><b><font ;12><%=%C0 + ' / <fgcolor=00FF00>' + %3%></font></fgcolor></b><br><solidline><upline><b>Start</b>:<%=%1%><br><b>End</b>:<%=%2%><br><b>Duration</b>:<%=round(%2-%1) + ' days'%><br><b>Working</b>:<%='<b>' + int(%258) + '</b> days' + (0:=(%258 - int(%258)) ? (' <fgcolor=FF0000><b>' + round(24 * =:0) + '</b> hours') : '') %>", so it includes the working time in hours, not only on days.

so the caption of the Zoom-on-fly includes the following information: 

and the zoom on fly panel shows as following:

 

The ZoomOnFlyCaption property supports the following built-in HTML tags:

Also, newer HTML format supports decorative text like follows:

The ZoomOnFlyCaption property supports expressions between <%= and %>, aka <%=expression%>, where the expression can use predefined operators and functions like explained bellow. Inside the expression, the the %0, %1, %2, %3, indicates the bar's property. For instance, the <%=%0%> indicates the ItemBar(exBarName) or the type of the bar such as "Task", "Split", ... , as the exBarName identifier is 0, or <%=%9%> indicates the ItemBar(exBarKey) or the key of the bar ( the Key parameter of the AddBar method ) , as the exBarKey identifier is 9. Also, the known variables are %C0, %C1, %C2, ... which indicates the values in the columns. For instance the expression <%=%9 + '/' + %C0%>, displays the key of the bar, followed by '/' character, and next the value in the first column ( 0 indicates the index of the column ).

This property/method supports predefined constants and operators/functions as described here.


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.