Hi,
I have tried the following but it is not quite there.
It always puts todays date in the top left corner. What I want is a text field
that moves with the chart. This way I can scroll back through the bars and see
the day of the week printed in the top left corner at the start of each new day.
function DOWasStr ()
{
DOW = Now(9);
switch(doW) {
case 1: St="Sunday"; break;
case 2: St="Monday"; break;
case 3: St="Tuesday";break;
case 4: St="Wednesday"; break;
case 5: St="Thursday"; break;
case 6: St="Friday"; break;
case 7: St="Saturday"; break;
}
return (St);
};
_SECTION_BEGIN("DOW");
AddTextColumn( Now(), "Current1 time");
GfxSelectFont("Times New Roman", 16, 700, True );
NewDay = Day()!= Ref(Day(), -1);
if (newday=True)
GfxTextOut("DOW="+Now(0)+"-"+DOWasStr(), 10, 20 );
// Following is some diagnostic informatin, trying to find the start of a new
day.
ToolTip=StrFormat( "NewDay %g\n", newday);
ToolTip=StrFormat( "Day %g\n", Day());
ToolTip=StrFormat( "Day-1 %g\n", Day()-1);
_SECTION_END();