一个 StringGrid1 10行3列 有个TIMER 时间间隔设定是1000 TIMER运行的是个判断 如果数据改变 就重新写入结果 StringGrid1  闪烁 请问有解决办法吗?
或者有更好的控件吗?

解决方案 »

  1.   

     是sg的一行闪烁啊还是某一行某一列的数据闪烁啊?
    可以尝试简单一点的,比如画上去,或者放个image,控制image的显示达到闪烁的目的。
      

  2.   

    就是我又一个TIMER 里面有些代码 不停的判断 然后给固定的格赋值闪烁了 就
    ===============
    var
    ss,s:string;
    n,m,i:integer;
    label l1;
    begin
    if flage=1 then
    begin
    form1.MemoText.Clear;
       GetListViewText(MTHSC,MemoText.Lines);
                        for i := 0 to MemoText.Lines.Count - 1 do
    begin
         n:=0;
         m:=0;
          ss:='';
           ss:=MemoText.Lines.Strings[i];
          ss:=qckg(ss);
          s:=copy(ss,0,6);
          // form1.StringGrid1.Cells[0,i+1]:=s;
           ss:=copy(ss,7,length(ss));
           n:=length(ss) div 2;        if   form1.StringGrid1.Cells[1,i+1]<>copy(ss,0,n) then
            begin
             form1.StringGrid1.Cells[1,i+1]:=copy(ss,0,n);
                 ask:=copy(ss,0,n);
              end;            if   form1.StringGrid1.Cells[2,i+1]<>copy(ss,0,n) then
            begin
           form1.StringGrid1.Cells[2,i+1]:=copy(ss,n+1,length(ss));         bid:=copy(ss,n+1,length(ss));
             end;
    end;
    end;
      

  3.   

    StringGrid1.DoubleBuffered := True;
      

  4.   

     StringGrid1 属性 DoubleBuffered 设置为true.