1,501
edits
No edit summary |
|||
Line 66: | Line 66: | ||
<syntaxhighlight>GetAppInfo(aiRealTimeCalc)</syntaxhighlight> | <syntaxhighlight>GetAppInfo(aiRealTimeCalc)</syntaxhighlight> | ||
Will return a value of 1 if the calling application’s calculations are based on real-time or PlayBack data; otherwise, will return a value of 0. | Will return a value of 1 if the calling application’s calculations are based on real-time or PlayBack data; otherwise, will return a value of 0. | ||
<syntaxhighlight> | |||
[ProcessMouseEvents = true]; | |||
switch (getappinfo(aicalcreason)) begin | |||
case CalcReason_MouseLClick : if MouseClickCtrlPressed then begin | |||
var: var0(0), var1(0); | |||
repeat | |||
if 0 = var0 then begin | |||
var0 = MouseClickDateTime; | |||
break; | |||
end; | |||
until(false); | |||
end; | |||
end; | |||
var1 = datetime2eltime(var0); | |||
print("Time of the Bar = ", var1); | |||
</syntaxhighlight> | |||
=== Using GetAppInfo for Chart Window information === | === Using GetAppInfo for Chart Window information === |