Sorry,回复晚了。
我做了些调整,用了SuspendLayout 和 ResumeLayout Tip上的黑色块消失了。闪烁的事情跟刷新频炉有关,tick间隔短的话,很难调整。
flexChart1.SuspendLayout();
var newItem = new DataItem();
newItem.Date = DateTime.Now;
newItem.Depth = 1000 + rnd.Next(10,20);// CDAProtocal.Query("DEPTH");
newItem.WOB = 80 + rnd.Next(1,5);// CDAProtocal.Query("BLOCKUCOMP");
newItem.WOH = 100 + rnd.Next(5,10);// CDAProtocal.Query("HKLD") / 10000;
DataPoints.Add(newItem);
if (newItem.Date.ToOADate() >= Y0.Max)
{
Y0.Max = Y1.Max = Y2.Max = flexChart1.AxisY.Max = Y0.Max + 0.0049;
Y0.Min = Y1.Min = Y2.Min = flexChart1.AxisY.Min = Y0.Min + 0.0049;
}
flexChart1.ResumeLayout(); |